Select to view content in your preferred language

Failed to resolve com.esri.arcgisruntime:arcgis-android:100.15.1 error in android studio

1016
1
05-05-2023 12:54 PM
PJ30
by
New Contributor

Getting "Cause: unable to find valid certification path to requested target" error
I have added maven url in settings.gradle file.

maven {
url 'https://esri.jfrog.io/artifactory/arcgis'
}


Facing above issue with Failed to resolve com.esri.arcgisruntime:arcgis-android:100.15.1 error.
 

0 Kudos
1 Reply
Shubham_Sharma
Esri Contributor

The error message "unable to find valid certification path to requested target", seems like to be the clue. Looks like you might be implementing the SDK on some restricted network where the required certificates might not install. This could happen if the network is behind a proxy. Not sure if you can test this on a different network. 

I would recommend visiting https://esri.jfrog.io/artifactory/arcgis on the browser and export the proxy signed CA. 

Shubham_Sharma_0-1683322999338.png

Head to Android studio -> Preferences -> Tools -> Server Certificates and add the exported certificate to allow Android studio to accept it as a trusted certificate. 

Shubham_Sharma_1-1683323422183.png

 

 

Gradle Implementation

// project level settings.gradle
dependencyResolutionManagement {
    repositories {
        maven { url 'https://esri.jfrog.io/artifactory/arcgis' }
    }
}

// app level build.gradle
dependencies {
    implementation 'com.esri:arcgis-maps-kotlin::100.15.1'
}

 

0 Kudos