2016-03-22 6 views
3

このエラーが発生し続ける。何か案は?あなたは、Androidのプラグインアーティファクトを見つけるためのMavenの中央を参照しているgradle 2.0.0 beta 7 missing

What went wrong: 
A problem occurred configuring project ':app'. 
Could not resolve all dependencies for configuration ':app:classpath'. 
Could not find com.android.tools.build:gradle:2.0.0-beta7. 
Searched in the following locations: 
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.0.0-beta7/gradle-2.0.0-beta7.pom 
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.0.0-beta7/gradle-2.0.0-beta7.jar 

答えて

8

、アンドロイドのGradleプラグインはjcenter

で公開されているbuildscript.repositoriesにjcenter()を追加するには、ルートの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:X.X.X' // your verison 

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

をどのように私はのGradleのバージョンを見つけることができますか? –