2017-10-13 121 views
0

错误:访问被拒绝摇篮“MyApplication的”项目更新在Android Studio中失败2.3.2

我最近安装Android Studio中,我从后面我的组织代理运行它。我已经解决了这个问题的100个链接,我无法找到解决方案。

我做了什么至今:

  1. gradle.properties我已经写

    systemProp.http.proxyHost=sy*********om 
    systemProp.http.proxyPort=80 
    systemProp.http.proxyUser=RAGU 
    systemProp.http.proxyPassword=W******** 
    systemProp.http.auth.ntlm.domain=*****om 
    
    systemProp.https.proxyHost=sy**********om 
    systemProp.https.proxyPort=80 
    systemProp.https.proxyUser=RAGU 
    systemProp.https.proxyPassword=W******** 
    systemProp.https.auth.ntlm.domain=*****om 
    
  2. 项目结构在JDK位置我已经进入以下行

    我的jdk ie的位置。 C:\Program Files\Java\jdk1.8.0_66而不是使用嵌入式JDK。

  3. 我的build.gradle:

    // Top-level build file where you can add configuration options 
    common to all sub-projects/modules. 
    
    buildscript { 
        repositories { 
         jcenter() 
        } 
    
        dependencies { 
        classpath 'com.android.tools.build:gradle:2.3.2' 
    
        // NOTE: Do not place your application dependencies here; they belong 
        // in the individual module build.gradle files 
        } 
    } 
    
        allprojects { 
        repositories { 
         jcenter() 
         } 
        } 
    
        task clean(type: Delete) { 
        delete rootProject.buildDir 
        } 
    

我的日志

您可以通过此链接查看日志:https://drive.google.com/open?id=0B7ZLoWnEHDkac2thbXRTNEduTkZPSkFYNW56UVV3UzhmZ3NZ

每当我试着同步的弹出此错误。我能做些什么来解决这个错误。

+0

这个错误怎么样? –

+2

可能的重复[错误:无法使用Gradle安装(gradle 2.4,android studio)]运行生成操作](https://stackoverflow.com/questions/32887623/errorcould-not-run-build-action-using-gradle-安装-gradle这个-2-4-机器人) – Bishan

回答

0

我有gradle包装和gradle-wrapper.properties非常丑陋的问题,直到我发现这个Gradle proxy configuration。我测试了它和它的工作就像一个sharm.The命令是这样的

gradle -Dhttp.proxyHost=proxy -Dhttp.proxyPort=3128 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password -Dhttps.proxyHost=proxy -Dhttps.proxyPort=3128 -Dhttps.proxyUser=username -Dhttps.proxyPassword=password wrapper

我跑了它在Android工作室终端与Windows代理disable.My PC在Windows 10 x 64版本的10.0.16299.15运行了Android 3.0工作室.1

我希望这能帮到你。快乐的新年!

相关问题