解決java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

在寫安卓程序的時候,因爲我的安卓程序要錄音,電腦上麥克風不好,所以想在真機上調試,雖然在模擬器上運行的很正常,但是在真機上直接閃退,查看log發現報瞭如下錯誤: 找了很多博客,最終解決了問題,如下 打開IDE,進入File—>Setting—>Build,Execution,Deployment—>Instant Run 將enable instant run to hot swap code/r
相關文章
相關標籤/搜索