2016-05-08 4 views

ответ

2

задача решается как то 1.

добавить следующие строки

// Add the following ArcGIS repository 
     maven { 
      url 'https://esri.bintray.com/arcgis' 
     } 

в build.gradle модуля проекта

быть такими

// Top-level build file where you can add configuration options common to all sub-projects/modules. 


buildscript { 
    repositories { 
     jcenter() 

     //**Added .. for ArcGIS 
     maven { 
      url 'https://esri.bintray.com/arcgis' 
     } 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.1.0' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
     // Add the following ArcGIS repository 
     maven { 
      url 'https://esri.bintray.com/arcgis' 
     } 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

Кроме того, я редактировал версию ARCGIS зависимости в модуле приложения build.gradle быть похожим, что

compile 'com.esri.arcgis.android:arcgis-android:10.2.8' 
+1

Дополнительный URL-адрес maven под ** buildscript ** помог мне решить мою проблему! –

0

Может потребоваться.

В файле build.gradle модуля приложения в блоке зависимостей добавьте директиву, чтобы включить ArcGIS Runtime SDK для Android в зависимости от вашего приложения. модуль App build.gradle файл

Fallow all the steps from here

dependencies { 
    // Add ArcGIS Runtime SDK for Android dependency 
    compile 'com.esri.arcgis.android:arcgis-android:10.2.7' 
} 
+0

Уже сделано ... вот почему у меня ошибка выше! Он не может разрешить эту строку. –

0

Возможно, это связано с неправильной совпадением версии Android Studio. Итак, попробуйте дать последние зависимости в уровне приложения build.gradle. В моем случае я изменил его с 10.2.6 до 10.2.8

compile 'com.esri.arcgis.android:arcgis-android:10.2.8' 

 Смежные вопросы

  • Нет связанных вопросов^_^