大家好,我已经意外删除了我在手机上工作的应用程序,当我回到家并尝试通过Android工作室启动时,它给了我错误:
08/23 05:25:27: Launching app
No local changes, not deploying APK
$ adb shell am start -n "com.example.andy.sunshine.app/com.example.andy.sunshine.app.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "com.example.andy.sunshine.app/com.example.andy.sunshine.app.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.example.andy.sunshine.app/.MainActivity }
Error type 3
Error: Activity class {com.example.andy.sunshine.app/com.example.andy.sunshine.app.MainActivity} does not exist.
Error while Launching activity
我该怎么做才能克服这个问题。请帮帮我!
答案 0 :(得分:1)
答案 1 :(得分:0)
The problem is in the build / run configuration of your project. You have
to check the "Deploy application" checkbox in the Run/Debug
Configuration screen, under the General tab.
希望对你有所帮助。