Android 具有渐变风味的ndk gdb
在我的android项目中,我有一个带有默认包名的默认版本,例如:Android 具有渐变风味的ndk gdb,android,gradle,ndk-gdb,Android,Gradle,Ndk Gdb,在我的android项目中,我有一个带有默认包名的默认版本,例如: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.my.default" android:installLocation="auto"> 在将APK安装到我的设备后,我想连接ndk gdb,我遇到了以下问题: 如果我安装了com.my.default一切正常 如果我安装com.my.other,ndk
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.my.default"
android:installLocation="auto">
在将APK安装到我的设备后,我想连接ndk gdb
,我遇到了以下问题:
com.my.default
一切正常com.my.other
,ndk gdb
会失败,因为它正在查找com.my.default
,该文件在AndroidManifest.xml
中定义AndroidManifest.xml
中的包名更改为com.my.other
,则ndk-gdb
有效我的问题是:有没有任何方法可以使用ndk debug来调试APK产生的味道,而不改变AndroidManifest.xml?Android在最新的ndk-r10e中修复了这个问题
productFlavors {
another {
applicationId 'com.my.another' // This could override the package name defines in the `AndroidManifest.xml`
}
}