Android Studio啟動錯誤——Error: Activity class {} does not exist.Error while Launching activity


當Android Studio連接數據線安裝調試APP時出現如下錯誤提示:

Error: Activity class {...Activity} does not exist Error while Launching activity

原因:因為android studio認為你的項目還是運行在手機上的,可是你把他卸載掉了,它自然不知道,所以才會出現這種情況。

解決方案:

使用命令adb uninstall com.xx.xxx.xxx(包名)卸載apk,然后重新安裝

查看adb命令相關:https://www.cnblogs.com/lkc9/p/11238451.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM