在我的android项目中,我有一个默认的包名,例如:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.my.default"
android:installLocation="auto">在我的build.gradle中,我添加了另一种不同的包名:
productFlavors {
another {
applicationId 'com.my.another' // This could override the package name defines in the `AndroidManifest.xml`
}
}在将APK安装到我的设备上之后,我想附加ndk-gdb,并得到这样的问题:
com.my.default,一切都很好。com.my.another,ndk-gdb就会失败,因为它正在寻找在AndroidManifest.xml中定义的com.my.default。AndroidManifest.xml中的包名更改为com.my.another,则ndk-gdb工作。我的问题是:我是否可以在不改变ndk-debug的情况下使用AndroidManifest.xml来调试生产的APK?
发布于 2015-08-13 08:39:08
Android修复了最新的ndk-r10e https://code.google.com/p/android/issues/detail?id=56189中的这个问题。
https://stackoverflow.com/questions/30068283
复制相似问题