我正在尝试使用cordova在本地构建我的Android应用。我已经下载了最新的gradle版本,但是在导出时出现此错误:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:6.0.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/6.0.1/gradle-6.0.1.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/6.0.1/gradle-6.0.1.pom
Required by:
project :
这是build.gradle构建脚本:
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:6.0.1'
}
}
allprojects {
repositories {
mavenCentral()
jcenter()
}
}
task wrapper(type: Wrapper) {
gradleVersion = '6.0.1'
}
我的gradle-wrapper.properties
还将distributionUrl
设置为http\://services.gradle.org/distributions/gradle-6.0.1-all.zip
有人知道我在做什么错吗?
答案 0 :(得分:2)
请勿将gradle与Android gradle pluing混淆。
proc sql;
insert into test (x1, x2, x3) values (77, 20, 1998);
quit;
不存在不存在。
插件的最新稳定版本为:'com.android.tools.build:gradle:6.0.1'
。