Reputation: 14445
DexGuard recently switched to a license system with only 1 license per application. This caused this issue when I'm using applicationIdSuffix
for other buildtypes:
The package name from the AndroidManifest.xml file [com.example.myapp.debug] doesn't match the package name [com.example.myapp] from your DexGuard license [path/to/dexguard-license.txt]
Is there a workaround or option available this?
Upvotes: 1
Views: 1049
Reputation: 14445
So, eventually GuardSquare updated our license so we could use '.debug' applicationIdSuffix with the same license. As Gabriele suggests in the answers, you could just turn DexGuard off or buy a second license.
Upvotes: 0
Reputation: 364451
The package name from the AndroidManifest.xml file [com.example.myapp.debug] doesn't match the package name [com.example.myapp] from your DexGuard license [path/to/dexguard-license.txt]
It means that you can use DexGuard only for the package name com.example.myapp
and you can't use it for the package com.example.myapp.debug
.
You can:
For the second option:
buildTypes {
release {
proguardFile getDefaultDexGuardFile('dexguard-release.pro')
proguardFile 'dexguard-project.txt'
signingConfig signingConfigs.release
}
debug {
//nothing
}
}
Upvotes: 1