第一番 Android 不能進(jìn)行debug調(diào)試

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 ̄)づ

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Android 自定義View的各種姿勢(shì)1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 179,323評(píng)論 25 708
  • Correctness AdapterViewChildren Summary: AdapterViews can...
    MarcusMa閱讀 9,067評(píng)論 0 6
  • afinalAfinal是一個(gè)android的ioc,orm框架 https://github.com/yangf...
    passiontim閱讀 15,898評(píng)論 2 45
  • 讀萬(wàn)卷書(shū)不如行萬(wàn)里路,行萬(wàn)里路不如閱人無(wú)數(shù),閱人無(wú)數(shù)不如思索回顧。
    母親河畔那棵小草閱讀 109評(píng)論 0 0
  • 熱,實(shí)際上是對(duì)有夏季的高溫極端形象化地概括。略猜“熱”的字形,執(zhí)手參與降溫,依舊能掉四滴水,想來(lái)古人造字時(shí)也揮汗如...
    Xiaoyuzhixing閱讀 210評(píng)論 0 1

友情鏈接更多精彩內(nèi)容