2016-08-23 40 views
0

你好我已經意外刪除了我的應用程序,我在我的手機上工作,當我回家並嘗試啓動它通過Android工作室,它給了我錯誤:我通過手機刪除了我的應用程序,當我嘗試通過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

轉到您的電話設置並打開應用程序管理器。檢查你的應用程序是否存在。同時檢查該列表的底部是否顯示Greyed。如果存在打開並卸載它。 – sJy

回答

1

Android Studio認爲沒有變化並且不安裝新的APK。解決方法是在「運行」>「編輯配置」中禁用「如果APK未更改,則跳過安裝」選項。

enter image description here

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. 

希望它的幫助你。

相關問題