microsoftconnect/ms-intune-app-sdk-android

build fails with intuneappsdk 10.0

slowcar opened this issue · 3 comments

Intune Android App SDK [Gradle Build Plugin] Issue

Summary

related to my other issue #215
mamifyclasses fails in debug and release build when i build with the current gradle/agp versions.

Error message: superinterface check failed: class freemarker.ext.dom.SunInternalXalanXPathSupport$1 (in unnamed module @0x764219ca) cannot access class com.sun.org.apache.xml.internal.utils.PrefixResolver (in module java.xml) because module java.xml does not export com.sun.org.apache.xml.internal.utils to unnamed module @0x764219ca

Details

  • Intune Android App SDK Version:10.0.0
  • Gradle Version:8.6
  • AGP Version:8.2.2
  • Operating System (Mac, Linux, Windows) and Version:Windows 10 22H2
  • Android Studio Version:2023.1.1 Patch 2

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.1'
com.google.code.gson:gson:2.10.1'
com.microsoft.identity.client:msal:5.1.0
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.8.0
io.noties.markwon:core:4.6.2
it.xabaras.android:recyclerview-swipedecorator:1.4

@slowcar , would it be possible to share a small repro project which we can use to recreate this build failure locally?

@slowcar This build issue has been traced to the ezvcard library - See #189

Thank you for the hint.
We did not find a suitable replacement, but could locate the issue this way.
Using
implementation ('com.googlecode.ez-vcard:ez-vcard:0.12.1') { exclude group: 'org.freemarker', module: 'freemarker' }
works for us, looks like none of the needed functionality depends on this.