Android SDK Gradle deprecated dependencies conflict SOLVED

Android Zoom Sdk, mobilertc project v5.16.0+ contains dependency:

com.davemorrissey.labs:subsampling-scale-image-view:3.10.0
(with the latest rellease at 25.03.2018, and lat upsate 30.12.2020) that contains dependency tree:

±-- com.android.support:support-annotations:27.1.0
| -– com.android.support:exifinterface:27.1.0
| -– com.android.support:support-annotations:27.1.0
According to Android docimentation Paket-Paket Support Library | Developer Android | Android Developers 4 all support packages are deprecated and should be migrated to androidx
Old support libraries are not compatible with androidx librarties.

mobilertc project v5.15.+ does not contain that dependency.

Any app build with mobilertc project v5.16.0+ can’t pass the lint check.

Build warning example:

WARNING: Your project has set android.useAndroidX=true, but configuration :app:debugRuntimeClasspath still contains legacy support libraries, which may cause runtime issues.
This behavior will not be allowed in Android Gradle plugin 8.0.
Please use only AndroidX dependencies or set android.enableJetifier=true in the gradle.properties file to migrate your project to AndroidX (see Migrate to AndroidX  |  Android Developers for more info).
The following legacy support libraries are detected:
:app:debugRuntimeClasspath → project :mobilertc → com.davemorrissey.labs:subsampling-scale-image-view:3.10.0 → com.android.support:support-annotations:27.1.0
:app:debugRuntimeClasspath → project :mobilertc → com.davemorrissey.labs:su

One can make the app pass lint check by enabling Jetifier by adding android.enableJetifier=true in the gradle.properties file

In our case, we also needed to add jackson-core library to the list of not jetified libs to make the build work
android.jetifier.ignorelist=jackson-core

1 Like

I’m seeing this same issue in v5.17.10.20175 when using compose.
Error: Dependencies using groupId com.android.support and androidx.* can not be combined but found com.android.support:exifinterface:27.1.0 and androidx.compose.foundation:foundation-android:1.6.2 incompatible dependencies [GradleCompatible]