Error while executing: am start -n "com.pgz.main/com.pgz.main.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.pgz.main/.MainActivity } Error type 3 Error: Activity class {com.pgz.main/com.pgz.main.MainActivity} does not exist.
Error while Launching activity
Session 'app': Error Launching activity
APP可能还在后台运行。
解决方法:
1.file——setting——build,execution——install run 取消勾选
2.卸载APP,重新运行。
3.同步gradle