相关疑难解决方法(0)

在圆圈ci中找不到com.android.tools.build:gradle:3.0.0-alpha1

我将gradle插件更新为最新版本:com.android.tools.build:gradle:3.0.0-alpha1 发生此错误:

export TERM="dumb"
if [ -e ./gradlew ]; then ./gradlew test;else gradle test;fi

FAILURE: 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:
Run Code Online (Sandbox Code Playgroud)

当前的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 …
Run Code Online (Sandbox Code Playgroud)

android build gradle circleci android-studio

152
推荐指数
7
解决办法
16万
查看次数

android studio 3.0 Canary 1:项目刷新失败

我试图在这个新的Android Studio 3.0 Canary 1中加载我的项目.它在我之前的Android Studio版本2.4预览版7中运行得很好

这是我面临的错误:

Error:Could not resolve all dependencies for configuration ':sample:devCompileClasspath'.
Project :sample declares a dependency from configuration 'devCompile' to configuration 'dev' which is not declared in the descriptor for project :library.
Run Code Online (Sandbox Code Playgroud)

我的gradle配置如下:

项目级别构建Gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0-alpha1'
        classpath 'com.google.gms:google-services:3.0.0'

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

allprojects {
    repositories {
        jcenter()
    } …
Run Code Online (Sandbox Code Playgroud)

android build.gradle android-gradle-plugin android-studio-3.0

8
推荐指数
1
解决办法
6925
查看次数