dumazy
dumazy

Reputation: 14445

DexGuard with applicationIdSuffix

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

Answers (2)

dumazy
dumazy

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

Gabriele Mariotti
Gabriele Mariotti

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:

  • buy a second license for the other package
  • disable DexGuard for the debug build type

For the second option:

 buildTypes {
        release {
            proguardFile getDefaultDexGuardFile('dexguard-release.pro')
            proguardFile 'dexguard-project.txt'

            signingConfig signingConfigs.release
        }
        debug {
            //nothing
        }
    }

Upvotes: 1

Related Questions