2017-09-01 47 views
-1

我想我用這個命令andoird應用程序創建配置文件:Android編譯失敗的createing輪廓與gradlew

./gradlew assemleDebug --dry-run --configure-on-demand --daemon --profile 

運行命令後,我得到這個錯誤:

FAILURE: Build failed with an exception. 

* What went wrong: 
A problem occurred configuring root project 'CafeAlachiqPro'. 
> Could not resolve all files for configuration ':classpath'. 
    > Could not find com.android.tools.build:gradle:3.0.0-beta2. 
    Searched in the following locations: 
     https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-beta2/gradle-3.0.0-beta2.pom 
     https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-beta2/gradle-3.0.0-beta2.jar 
    Required by: 
     project : 

BUILD FAILED in 7s 

我使用最新版本的gradle這個我和設置應用gradle這個文件爲m:

dependencies { 
    classpath 'com.android.tools.build:gradle:3.0.0-beta2' 
    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' 
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 
} 

allprojects { 
    repositories { 
     jcenter() 
     maven { 
      url 'https://maven.google.com' 
     } 
    } 
} 

回答

0

嘗試添加全新G oogle Maven存儲庫到您的build.gradle文件:

maven { url 'https://maven.google.com' } 
+0

我在'build.gradle' –