Android的工作室1.0RC4摇篮建立自己的错误自己的、摇篮、错误、工作室

2023-09-05 09:08:17 作者:重金属摇滚叔

我刚刚下载的Andr​​oid工作室1.0RC4,我不能建造任何项目,即使是新创建的。

I just downloaded Android Studio 1.0RC4 and I can't build any project, even newly created ones.

我得到的错误是:

错误:用摇篮分布https://services.gradle.org/distributions/gradle-2.2.1-all.zip'.

Error:Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.2.1-all.zip'.

我可以下载从浏览器的压缩,但它不工作的AS。这是我的build.gradle文件:

I was able to download the zip from the browser but it's not working on AS. This is my build.gradle file:

// 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:1.0.0-rc1'

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

allprojects {
    repositories {
        jcenter()
    }
}

模块构建文件:

Module build file:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 19
    buildToolsVersion "19.1.0"

    defaultConfig {
        applicationId "simple.com.car10"
        minSdkVersion 14
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

Graddle-wrapper.properties

Graddle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

我试图运行graddle - 打造而成cmd,然后我得到这个错误:

I Tried to run graddle - build from cmd, and I got this error:

FAILURE: Build failed with an exception.

* What went wrong:
Build file 'C:\Users\Giovanni\uild' does not exist.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

总时间:3.093秒

Total time: 3.093 secs

JDK:1.8.0_05

JDK: 1.8.0_05

当我打再试一次什么也没有发生,我已经尝试卸载一切,重新安装,但没有奏效。

When I hit try again nothing happens, I already tried uninstalling everything and installing again but it didn't work.

任何想法的家伙?谢谢你。

Any ideas guys? Thanks.

推荐答案

我终于得到了它的工作家伙

I finally got it working guys

我只好删除在 .gradle 文件夹中的 C:\ Users \用户名\,然后我打开具有管理员权限并且又活过来了!

I had to delete the .gradle folder in 'C:\Users\Username\' and then I opened AS with admin rights and it came back to life!

谢谢大家。