0.关键字

  • android 无法debug ; android debug不好使; android 不能debug

1.问题描述

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 还是相当靠谱的啊 )

在面板中点击 Build Variants 找到想要debug的Model,将此Model后面Build Variants的 release 修改为debug ,等待重新build之后,就可以进行正常的debug了,如下图:

Image.png

3.补充说明

(1) 如果在gradle中配置过渠道包,在Build Variants中会有很多选项,看一下正在使用的是否带有release后缀 如果有则选择相应的debug,如下图:

Image.png

(2) 如果在Android Studio 面板中没有 Build Variants 则按下面步骤进行,即可调出此面板,如下图:

Image.png

The End


若此文有幸被您看到,欢迎指正(づ ̄ 3 ̄)づ

更多相关文章

  1. 默认不弹出输入面板
  2. android私有目录直接读取
  3. Android之使用ContentResolver对通信录中的数据进行简单操作
  4. list_item 们
  5. [Android(安卓)新特性] Android(安卓)4.3新功能(正式发布前)
  6. 【Android(安卓)FFMPEG 开发】Android(安卓)中使用 FFMPEG 对 MP
  7. Android利用Python后台进行人脸识别登录
  8. [原]零基础学习在Android进行SDL开发系列文章
  9. Android(安卓)简单的代码混淆

随机推荐

  1. 系出名门Android(10) - HTTP 通信, XML
  2. android笔记
  3. Android(安卓)Studio 使用AIDL
  4. Android上下文Context的那些小事
  5. Android中关于自定义Dialog的使用简介
  6. 转载:Android进程的内存管理分析
  7. Android不同版本获取当前wifi信息方法
  8. Android(安卓)关于休眠的几个坑点
  9. Android之Intent分析
  10. Android(安卓)Studio下jni应用