Select to view content in your preferred language

Arcgis Runtime for Android arcgis-android maven package references conscrypt-openjdk-uber which is for Windows and Linux and not for Android.

507
1
08-10-2022 05:44 AM
MudassarJafer
New Contributor

'com.esri.arcgisruntime:arcgis-android:100.14.0' has a dependency 'org.conscrypt:conscrypt-openjdk-uber:2.2.1'. This dependency is incorrect as it should only be used for windows, linux and MacOS. The following github repository mentions that for Android use conscrypt-android.

https://github.com/google/conscrypt#android

'org.conscrypt:conscrypt-android:2.5.2'

 This has caused me a lot of pain with a custom react native component as the app kept crashing when it was unable to find the required libraries.  The solution I have used until this is fixed in the package repository is to exclude the "conscrypt-openjdk-uber" and add conscrypt-android as a dependency.

implementation ('com.esri.arcgisruntime:arcgis-android:100.14.1') {
    exclude group: "org.conscrypt", module: "conscrypt-openjdk-uber"
}
implementation 'org.conscrypt:conscrypt-android:2.5.2'

 

0 Kudos
1 Reply
GuntherHeppner
Esri Contributor

@MudassarJafer 

Thanks for bringing this to our attention. `org.conscrypt:conscrypt-openjdk-uber:2.2.1` is a transitive dependency introduced by the `org.apache.httpcomponents.core5` dependency.

Is your custom react native component using the conscrypt dependency directly? If yes, could you share some details on how it is using conscrypt? This would help us analyzing the problem and coming up with a potential fix.

0 Kudos