Select to view content in your preferred language

Failed to resolve: com.esri.arcgisruntime:arcgis-android:100.0.0

7137
9
02-10-2017 12:37 PM
BenDempsey1
Deactivated User

I am trying to follow the instructions in this beginner's guide, and I have added the maven url to the repositories block of the project's build.gradle, and I've put 

compile 'com.esri.arcgisruntime:arcgis-android:100.0'

in the dependencies block of the app module's build.gradle.

My issue comes from when I attempt to do a gradle build, it says

is there something wrong with that dependency or what could be causing this error?

0 Kudos
9 Replies
ShellyGill1
Esri Contributor

Hi Ben,

It looks like there's just a typo in your compile statement above - you should specify the full version number '100.0.0'.

Hope this helps,

Shelly

AlejandroPallares
Deactivated User

I'm having the same issues as Ben however even after changing the version to 100.0.0 the error keeps showing.

0 Kudos
AlexanderNohe1
Honored Contributor

Are you able to visit this url in your browser:

http://esri.bintray.com/arcgis/ 

Is it possible that your company cannot reach bintray via firewall or proxy settings?

0 Kudos
AlejandroPallares
Deactivated User

I already fixed it, and you're right it was a problem with the firewall.

Turns out Android Studio didn't updated my gradle.properties when i changed the proxy password. I could access the site in my browser, but the graddle file couldn't because it had the old password.

AlexanderNohe1
Honored Contributor

Nice!  I am glad that you were able to resolve it by updating your proxy information in gradle.

0 Kudos
Mariagomez1
Occasional Contributor

Hi Alexander Nohe and Alejandro Pallares, I encountered with the same problem .firewall is off and I have access to the mentioned website (http://esri.bintray.com/arcgis/) I am using proxy to get internet. I am new in android development, can you  please describe more how should I update gradle.properties? apparently I have the problem of updating proxy information in gradle.but i did not understand what do you mean "proxy information" and where should I get them and how to set in gradle?

Thanks in advance. I spend long time to solve this problem. I really appreciate it if you help me.

0 Kudos
AlexanderNohe1
Honored Contributor

Hi Maria gomez‌,

This stack overflow answer may help you:

android - How to set proxy server for gradle? - Stack Overflow 

Additionally, here is the grade resource for this issue:

The Build Environment - Gradle User Guide Version 3.5 

Thanks,

Alexander

Mariagomez1
Occasional Contributor

Thanks Alex

0 Kudos
Sid
by
New Contributor

You need to update the settings in settings.gradle and change repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) to repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)

and finally, add maven { url 'https://esri.jfrog.io/artifactory/arcgis' } to the repositories block.

0 Kudos