Android Studio 2.2.3 native debug 无法调试?:https://www.zhihu.com/question/54395205/answer/148790125
----------------------------------------------------------------
buildTypes {
release {
debuggable true
jniDebuggable true
signingConfig signingConfigs.config
}
debug {
jniDebuggable true
renderscriptDebuggable true
minifyEnabled false
}
}
原来是要把build types的 minifyEnabled 设为false 才能断点停下。
-------------------------------------------------------------------
最终解决方式:【Gradle】管理库工程release及debug
如果模块A引用模块B (不能解决A->B-C的情况)
模块B添加:
android {
publishNonDefault true
}
模块A添加:
dependencies {
releaseCompile project(path: ':facecamera', configuration: 'release')
debugCompile project(path: ':facecamera', configuration: 'debug')
}