Error: Activity class {} does not exist.Error while Launching activity, Error while executing: am start -n。。。最簡單有效解決方法,親測可用


天氣冷,先熱身,

 

 

1.Androidstudio運行工程直接報錯。如下圖所示:

 

 

 

 

在網上找個好多方法,都沒什么用,最后發現一個最簡單有效的方法: 直接打開Terminal,運行 adb uninstall com.xxx.xxx.xxx(包名), 提示: Success,   即成功!!直接重新運行代碼,無報錯!!!!

 


免責聲明!

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



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