Impossible to compile with AndroidX and Jetifier with minifyEnabled and proguard disabled
See original GitHub issueHello, I have tried to migrate my project to AndroidX and use the jetifier to transform dependencies to use AndroidX. Unfortunately I have an error with the microsoft-authentication-library-for-android library:
Execution failed for task ':app:transformClassesWithAndroidGradleClassShrinkerForDebug'.
> SHA-256 digest error for com/microsoft/identity/client/AadAuthority.class
I have the issue only in debug builds which have the minifyEnabled true
& useProguard false
. And I don’t have the issue on the release builds with shrinkResources true
& minifyEnabled true
& useProguard true
. (I use minifyEnabled true
on debug builds in my project to remove unused methods to go below the 65K method limit).
I build the debug builds with ./gradlew clean :app:assembleDebug
and the release ones with ./gradlew clean :app:assembleRelease
.
I have created a project reproducing the error: AzureADtestAndroidX.zip
Do you have any idea on what the issue might be?
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:24 (11 by maintainers)
Top GitHub Comments
@iambmelt I opened a bug on the Google issue tracker https://issuetracker.google.com/issues/115556774, and they are looking into it.
After much effort, I was able to use the current version with AndroidX:
./bin/jetifier-standalone -stripSignatures -i msal-0.2.2.aar -o msal-0.2.2.aar
common-0.0.8
aar as wellmsal-0.2.2.aar
common-0.0.8.aar
the same waybuild.gradle
, include msal, common and all of their child dependencies: