DexGuard最近切换到了一个许可证系统,每个应用程序只有一个许可证。当我将applicationIdSuffix用于其他构建类型时,这导致了这个问题:
来自AndroidManifest.xml文件com.example.myapp.debug的包名与您的DexGuard许可路径/to/右卫士许可.to中的包名com.example.myapp不匹配。
这里有解决办法或选项吗?
发布于 2017-05-08 14:53:42
来自AndroidManifest.xml文件com.example.myapp.debug的包名与您的DexGuard许可路径/to/右卫士许可.to中的包名com.example.myapp不匹配。
这意味着您只能将DexGuard用于包名com.example.myapp,而不能将其用于包com.example.myapp.debug。
您可以:
关于第二种选择:
buildTypes {
release {
proguardFile getDefaultDexGuardFile('dexguard-release.pro')
proguardFile 'dexguard-project.txt'
signingConfig signingConfigs.release
}
debug {
//nothing
}
}https://stackoverflow.com/questions/43850456
复制相似问题