Java Android无法解析配置的所有依赖项';类路径';
这就像我第一次使用Android Studio一样,当我尝试运行应用程序时,它会显示以下错误:Java Android无法解析配置的所有依赖项';类路径';,java,android,android-studio,Java,Android,Android Studio,这就像我第一次使用Android Studio一样,当我尝试运行应用程序时,它会显示以下错误: Error:A problem occurred configuring root project 'PickApp'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve com.android.tools.build:gradle:0.12.+.
Error:A problem occurred configuring root project 'PickApp'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:0.12.+.
Required by:
:PickApp:unspecified
> Failed to list versions for com.android.tools.build:gradle.
> Could not list versions using M2 pattern 'http://jcenter.bintray.com/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'.
> Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle/'.
> jcenter.bintray.com
Build.grandle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
您是否有访问jcenter.bintray.com DNS的明确网络访问权限?看来你还没到。你能包括你的build.gradle DSL吗?这种特殊的配置有什么特殊的原因或限制吗?为什么不使用Android Gradle插件的主要Google存储库?build.grandle已经添加。您是否可以尝试替换所有存储库引用:存储库{maven{url''},看起来像您的父build.Gradle。您的模块是否有任何特殊的buildscript配置?也许你已经修好了,你知道吗?