更新Android Studio 1.5后 Cannot debug application

作为一个有强迫症和版本控的人。

Android Studio 有了新版本1.5后 马上就更新之。。

升级后,本来的Android项目启动不了了,控制台输出:

Cannot debug application xx.xxx.xxx.app on device huawei-huawei_g7_tl00.

This application does not have the debuggable attribute enabled in its manifest.

If you have manually set it in the manifest, then remove it and let the IDE automatically assign it.

If you are using Gradle, make sure that your current variant is debuggable.

提示比较明显,要设置debuggable开关,但忘了在哪个标签内了。。GG

解决:

<application android:debuggable="true"></application>

加上以后AndroidManifest.xml会有红线提示,release版本时删掉

参考帖子:

http://stackoverflow.com/questions/16753939/not-able-to-debug-app-in-android-studio



文章来自:http://my.oschina.net/u/261246/blog/518980
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3