Android Studio 使用过程中会出现 no debuggable applications的情况,原因是没有设置的debuggable。
解决方法:在项目的
gradle 文件里面添加这句话
debuggable true
就oK
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "21.0.0"
defaultConfig {
applicationId "com.xinwo.liangzi"
minSdkVersion 11
targetSdkVersion 14
versionCode 1
versionName "1.0"
}
buildTypes {
release {
debuggable true
}
}
}
然后在同步一下gradle,然后在设备上重新安装一遍即可。