AS run the project Error while Launching activity of errors

Figure

The reason: the project main Activity page newspaper run error because android studio think your project is running on the phone, but you put him up uninstall, but it does not know that your project is still in the process of the main Activity , it can not be installed.

Solution: This open , or open cmd command is the same. Run the code Note: [] is the package name com.nf.xxx

adb uninstall com.nf.xxx 

  

After a successful run as follows

However, the installation can be recompiled

Guess you like

Origin www.cnblogs.com/inthecloud/p/11277990.html
Recommended