0.關(guān)鍵字
- android 無(wú)法debug ; android debug不好使; android 不能debug
1.問(wèn)題描述
Error running app:
- Cannot debug application from module app on device huawei-gem_703l-N7M6R15426003899.
- 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.

Image.png
2.解決辦法:
(stackoverflow 還是相當(dāng)靠譜的啊 )
在面板中點(diǎn)擊 Build Variants 找到想要debug的Model,將此Model后面Build Variants的 release 修改為debug ,等待重新build之后,就可以進(jìn)行正常的debug了,如下圖:

Image.png
3.補(bǔ)充說(shuō)明
(1) 如果在gradle中配置過(guò)渠道包,在Build Variants中會(huì)有很多選項(xiàng),看一下正在使用的是否帶有release后綴 如果有則選擇相應(yīng)的debug,如下圖:

Image.png
(2) 如果在Android Studio 面板中沒(méi)有 Build Variants 則按下面步驟進(jìn)行,即可調(diào)出此面板,如下圖:

Image.png
The End
若此文有幸被您看到,歡迎指正(づ ̄ 3 ̄)づ