解决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
相关文章
相关标签/搜索