microsoftconnect / ms-intune-app-sdk-android

Intune App SDK for Android enables data protection features and mobile app management via Microsoft Intune
41 stars 17 forks source link

debug build fails with intuneappsdk 10.0 #215

Closed slowcar closed 3 months ago

slowcar commented 4 months ago

Intune Android App SDK [Gradle Build Plugin] Issue

Summary

After updating the intune sdk to 10.0.0 (and javassist to 3.29.2-GA as suggested) we can no longer build a debug version of the project. The build process fails when applying the mam. Error message is: "Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer."

Creating a release build is successful (with 4 errors in the build outpit, but still successful).

Details

*) building with the current versions 8.6 and 8.2.2 fails with a different error as a release build as well, we downgraded to the last known working version.

Logs

Before submitting, please attach the following:

Android Studio / Gradle Logs

build stacktrace.txt

Gradle Build Plugin Report Logs

IntuneMAMBuildReport.zip

AndroidX Dependencies

If your app includes any AndroidX libraries, please list them here, along with the version info: androidx.multidex:multidex:2.0.1 androidx.work:work-runtime:2.9.0 androidx.preference:preference:1.2.1 androidx.webkit:webkit:1.10.0 androidx.appcompat:appcompat:1.6.1 androidx.lifecycle:lifecycle-common-java8:2.7.0 androidx.lifecycle:lifecycle-process:2.7.0 androidx.lifecycle:lifecycle-viewmodel:2.7.0 androidx.sharetarget:sharetarget:1.2.0 androidx.biometric:biometric:1.1.0 androidx.viewpager2:viewpager2:1.0.0 androidx.core:core-splashscreen:1.0.1

Third-Party Library Dependencies

If your app includes any third-party libraries, please list them here, along with the version info: com.google.android.material:material:1.11.0 com.splitwise:tokenautocomplete:2.0.8@aar org.greenrobot:eventbus:3.3.1 petrov.kristiyan:colorpicker-library:1.1.10 org.bouncycastle:bcprov-jdk15to18:1.77' org.bouncycastle:bcpg-jdk15to18:1.77' org.bouncycastle:bcpkix-jdk15to18:1.77' com.sun.mail:android-mail:1.6.7' com.sun.mail:android-activation:1.6.7' es.voghdev.pdfviewpager:library:1.1.3' org.jsoup:jsoup:1.17.2' com.google.firebase:firebase-messaging:23.4.0' com.google.code.gson:gson:2.10.1' com.microsoft.identity.client:msal:5.0.1 io.opentelemetry:opentelemetry-api:1.34.1 io.opentelemetry:opentelemetry-context:1.34.1 com.github.woxthebox:draglistview:1.7.3 com.github.yalantis:ucrop:2.2.8 com.hypergate:sdk:1.1.3 com.microsoft.graph:microsoft-graph:5.80.0 com.google.guava:guava:33.0.0-jre com.squareup.okhttp3:logging-interceptor:4.12.0 com.google.android.gms:play-services-base:18.3.0 com.googlecode.ez-vcard:ez-vcard:0.12.1 org.threeten:threeten-extra:1.7.2 net.sf.biweekly:biweekly:0.6.8 io.github.amrdeveloper:treeview:1.1.4 com.squareup.okhttp3:okhttp:4.12.0 com.squareup.retrofit2:retrofit:2.9.0 com.squareup.retrofit2:converter-gson:2.9.0 io.github.rburgst:okhttp-digest:3.1.0 com.andrognito.pinlockview:pinlockview:2.1.0 com.alamkanak.weekview:weekview:1.0 com.wdullaer.swipeactionadapter:swipeactionadapter:2.1.0 com.squareup.okio:okio:3.7.0 io.noties.markwon:core:4.6.2

slowcar commented 3 months ago

further investigation hints at an issue with the android sdk: https://issuetracker.google.com/issues/197081367 we have also found a similar issue https://github.com/web3j/web3j/issues/1963 where the solution was to enable minify for the debug build. With using minify=true as a workaround we can at least continue to use Intune wrapping as long as we keep the gradle version downgraded.