做爲一個有強迫症和版本控的人。android
Android Studio 有了新版本1.5後 立刻就更新之。。android-studio
升級後,原本的Android項目啓動不了了,控制檯輸出:app
Cannot debug application xx.xxx.xxx.app on device huawei-huawei_g7_tl00.spa
This application does not have the debuggable attribute enabled in its manifest.debug
If you have manually set it in the manifest, then remove it and let the IDE automatically assign it.code
If you are using Gradle, make sure that your current variant is debuggable.orm
提示比較明顯,要設置debuggable開關,但忘了在哪一個標籤內了。。GGxml
解決:
rem
<application android:debuggable="true"></application>
加上之後AndroidManifest.xml會有紅線提示,release版本時刪掉it
參考帖子:
http://stackoverflow.com/questions/16753939/not-able-to-debug-app-in-android-studio