我将gradle插件更新到最新版本:com.android.tools.build:grad:3.0.0 -Alpha1并发生此错误:
export TERM="dumb"if [ -e ./gradlew ]; then ./gradlew test;else gradle test;fiFAILURE: Build Failed with an exception.What went wrong: A problem occurred configuring root project 'AndroID-app'. Could not resolve all dependencIEs for configuration ':classpath'. Could not find com.androID.tools.build:gradle:3.0.0-Alpha1. Searched in the following locations: https://jcenter.bintray.com/com/androID/tools/build/gradle/3.0.0-Alpha1/gradle-3.0.0-Alpha1.pom https://jcenter.bintray.com/com/androID/tools/build/gradle/3.0.0-Alpha1/gradle-3.0.0-Alpha1.jar required by:
当前的circle.yml
dependencIEs: pre: - mkdir -p $ANDROID_HOME"/licenses" - echo $ANDROID_SDK_liCENSE > $ANDROID_HOME"/licenses/androID-sdk-license" - source environmentSetup.sh && get_androID_sdk_25 cache_directorIEs: - /usr/local/androID-sdk-linux - ~/.androID - ~/.gradle overrIDe: - ./gradlew dependencIEs || truetest: post: - mkdir -p $CIRCLE_TEST_REPORTS/junit/ - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;machine: java: version: oraclejdk8
编辑:
我的gradle文件:
buildscript { repositorIEs { jcenter() maven { url 'https://maven.Google.com' } } dependencIEs { classpath 'com.androID.tools.build:gradle:3.0.0-Alpha1' classpath 'com.Google.gms:Google-services:3.0.0' classpath "io.realm:realm-gradle-plugin:3.1.3" }}allprojects { repositorIEs { mavenCentral() jcenter() }}task clean(type: Delete) { delete rootProject.buildDir}
解决方法:
谷歌有新的maven回购,所以可能是原因.
https://android-developers.googleblog.com/2017/10/android-studio-30.html> Google的Maven资源库
https://developer.android.com/studio/preview/features/new-android-plugin-migration.html
https://developer.android.com/studio/build/dependencies.html#google-maven
所以也许(未经测试)添加对maven repo的依赖:
buildscript { repositorIEs { ... // You need to add the following repository to download the // new plugin. Google() // new which replace https://maven.Google.com jcenter() } dependencIEs { classpath 'com.androID.tools.build:gradle:3.3.0' //Minimum supported Gradle version is 4.6. }}
总结 以上是内存溢出为你收集整理的在圆圈ci中找不到com.android.tools.build:gradle:3.0.0-alpha1全部内容,希望文章能够帮你解决在圆圈ci中找不到com.android.tools.build:gradle:3.0.0-alpha1所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)