Proxy 在Android Studio中找不到依赖项

Proxy 在Android Studio中找不到依赖项,proxy,android-studio,arcgis,Proxy,Android Studio,Arcgis,我遵循使用arcgis android api的步骤,但android studio没有为我找到任何东西。另一件事是我在办公室通过代理设置连接互联网。我在文件>设置>HTTP代理(Manuel代理配置)中进行了代理设置。我的凭据和主机名为true 这是我的错误代码 Error:Failed to find: com.esri.arcgis.android:arcgis-android:10.2.5 Open File Open in oject Structure dialog 编

我遵循使用arcgis android api的步骤,但android studio没有为我找到任何东西。另一件事是我在办公室通过代理设置连接互联网。我在文件>设置>HTTP代理(Manuel代理配置)中进行了代理设置。我的凭据和主机名为true

这是我的错误代码

  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'
}
如何解决此问题


由于构建是由Gradle执行的,所以在Android Studio中配置代理是不够的(或者更准确地说,与构建无关)。
您需要。

设置->编译器->渐变->启用脱机工作,然后保存并应用更改。

文件在那里-必须是代理。感谢您的评论。我知道文件在哪里,但我无法在android studio中添加这些文件。我必须通过编译'com.esri.arcgis.android:arcgis-android:10.2.5'代码来添加。您可以发布gradle脚本的相关部分吗?
存储库
依赖项
闭包?我在帖子中添加了。我唯一想说的是,我正在通过代理连接互联网,当我在家里尝试这个安装步骤时,它已经完成了。现在我们最小化了这个问题,我想是关于代理设置的,但我在android studio中定义了代理设置。是否还有其他地方可以指定代理设置?我刚刚在AndroidStudio>文件>设置>HTTP代理(Manuel代理配置)中添加了代理设置,我打赌添加代理可以解决这个问题。如果有,请告诉我,我会加上它作为答案。它对我有好处,但。我在办公室试过了。在gradle.properties文件中的代码可以放在哪里?当我将此代码添加到gradle.propertiesİt时,它无法识别任何内容,也无法下载任何内容,仍然说找不到文件。
gradle.properties
文件应位于
~/.gradle
文件夹中。