更新Android Studio 1.5後 Cannot debug application
阿新 • • 發佈:2019-02-14
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
解決:
1 |
< application android:debuggable = "true" ></ application >
|
加上以後AndroidManifest.xml會有紅線提示,release版本時刪掉
參考帖子:
http://stackoverflow.com/questions/16753939/not-able-to-debug-app-in-android-studio