调试报错:
12/14 16:40:14: Launching 'YourAPP' on Xiaomi MI 5X.
$ adb shell am start -n "com.YourAPP/com.YourAPP.InitPermissions" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "com.YourAPP/com.YourAPP.InitPermissions" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.YourAPP/.InitPermissions }
Error type 3
Error: Activity class {com.YourAPP/com.YourAPP.InitPermissions} does not exist.
Error while Launching activity
处理方法:
E:\AndroidStudio\source\YourAPP>adb uninstall com.YourAPP
adb server is out of date. killing...
* daemon started successfully *
Success