2014-12-24 4 views
1

arcgis android api를 사용하여 this 단계를 수행하지만 Android Studio에서 나에게 아무 것도 찾지 못했습니다. 또 하나는 직장 사무실에서 프록시 설정을 통해 인터넷에 연결하는 것입니다. 파일> 설정> HTTP 프록시 (마누엘 프록시 구성)에서 프록시 설정을했습니다. 내 자격 증명과 호스트 이름이 사실입니다. 여기Android Studio에서 종속성을 찾지 못했습니다

내 오류 코드

Error:Failed to find: com.esri.arcgis.android:arcgis-android:10.2.5 
    Open File 
    Open in oject Structure dialog 

편집 :

내 빌드 Gradle을 프로젝트 FLE

buildscript { 
repositories { 
    jcenter() 
} 
dependencies { 
    classpath 'com.android.tools.build:gradle:1.0.0' 

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

allprojects { 
repositories { 
    jcenter() 
    maven { 
     url 'http://dl.bintray.com/esri/arcgis' 
    } 
} 
} 

내 모듈 Gradle을 파일;

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 21 
buildToolsVersion "21.1.2" 

defaultConfig { 
    applicationId "com.example.salih.saaaa" 
    minSdkVersion 15 
    targetSdkVersion 21 
    versionCode 1 
    versionName "1.0" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
    packagingOptions{ 
     exclude 'META-INF/LGPL2.1' 
     exclude 'META-INF/LICENSE' 
     exclude 'META-INF/NOTICE' 
    } 
} 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'com.android.support:appcompat-v7:21.0.3' 
compile 'com.esri.arcgis.android:arcgis-android:10.2.5' 
} 

이 문제를 어떻게 해결할 수 있습니까?

감사 빌드 이후

+0

파일이 있습니다. http://dl.bintray.com/esri/arcgis/com/esri/arcgis/android/arcgis-android/10.2.5/ 프록시 여야합니다. – JBaruch

+0

주셔서 감사합니다. 나는 파일이 어디에 있는지 알지만 안드로이드 스튜디오에서이 파일을 추가 할 수는 없습니다. com.esri.arcgis.android:arcgis-android:10.2.5 '코드를 추가하여 컴파일해야합니다. – salih

+0

gradle 스크립트의 관련 부분을 게시 할 수 있습니까? '리포지토리 '와'의존성'클로저는? – JBaruch

답변

2

은 안드로이드 스튜디오에서 프록시를 구성, Gradle을에 의해 수행되는 것만으로는 충분하지 않다 (더 정확하게, 또는, 빌드와는 아무 상관이 없습니다). configure proxy settings in Gradle itself이 필요합니다.

+0

그것은 나에게 잘 해줬지만. 나는 내 사무실에서 노력했다. 어디서 gradle.properties 파일에 코드를 넣을 수 있습니까? 이 코드를 gradle.properties에 추가하면 아무것도 인식하지 못하고 아무것도 다운로드 할 수 없으며 파일을 찾을 수 없다고 말합니다. – salih

+0

'gradle.properties' 파일은 ~/.gradle 폴더에 있어야합니다. – JBaruch

0

설정 -> 컴파일러 -> Gradle -> 사용함 오프라인으로 작업 한 다음 저장 및 적용 변경 사항을 적용하십시오.

관련 문제