相关疑难解决方法(0)

错误:无法解决:android.arch.core:common:1.1.0

我的系统突然关闭,我打开它,我得到错误:无法解决:android.arch.core:常见:我的android工作室1.1.0错误.我尝试过清理和重建项目,但它没有用.我在互联网上进行了研究,但没有一个能解决我的问题.

建立.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:2.2.0'

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

allprojects {
repositories {
    jcenter()
    maven {
        url 'https://jitpack.io'
    }
    maven {
        url "https://maven.google.com"
    }
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)

的build.gradle(APP)

apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion "27.0.1" …
Run Code Online (Sandbox Code Playgroud)

android-studio build.gradle android-gradle-plugin

32
推荐指数
3
解决办法
1万
查看次数

Gradle构建工具找不到play-services-tasks.aar?为什么?

今天突然,当我试图在Android工作室中运行我的应用程序时出现错误.

它是:

Error: Could not find play-services-tasks.aar (com.google.android.gms:play-services-tasks:15.0.1).
Searched in the following locations:
    https://jcenter.bintray.com/com/google/android/gms/play-services-tasks/15.0.1/play-services-tasks-15.0.1.aar
Run Code Online (Sandbox Code Playgroud)

gradle_build_error

我没有更改gradle文件中的任何内容,但突然出现了.我的上一个版本在几分钟前成功执行.

为什么它找不到 com.google.android.gms中的play-services-tasks.aar哪一部分:play-services-tasks:15.0.1

采取的步骤:

我检查了是否在gradle文件中包含了所有存储库,到目前为止所有存储库都是正确的.

为什么这个错误会突然发生?

我还将此链接https://jcenter.bintray.com/com/google/android/gms/play-services-tasks/15.0.1/play-services-tasks-15.0.1.aar复制到浏览器中,但它正在运行很好,就是我得到了"文件下载"对话框.


我的Gradle文件

  • 应用级别

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 26
        buildToolsVersion "26.0.2"
        defaultConfig {
            applicationId "mekanic24assistantapplication.heba.mekanic24.com.mekanic24assistantapplication"
            minSdkVersion 14
            targetSdkVersion 26
            versionCode 13
            versionName "2.1"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
            multiDexEnabled true
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    
    
        dexOptions {
            incremental true
            javaMaxHeapSize "4g"
        }
    
    //    err Android Gradle Duplicate files copied in …
    Run Code Online (Sandbox Code Playgroud)

android gradle maven google-play-services android-gradle-plugin

24
推荐指数
3
解决办法
1万
查看次数