图书馆遗失。 "安装和同步"不工作

时间:2017-07-30 21:10:47

标签: android android-gradle

我打开了我的项目,它向我显示了一些错误,我现在开始在Android的世界中,所以我不知道如何做到这一点。我按下安装存储库并同步项目,但这没有做任何事情。

这是我项目中的所有版本。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "26.0.0"
    defaultConfig {
        applicationId "mx.com.dtss.carritocompras"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:3.0.0', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile files('libs/ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar')
    compile group: 'com.google.code.gson', name: 'gson', version: '2.3'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support:cardview-v7:25.3.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    testCompile 'junit:junit:4.12'
}

这些是错误

enter image description here

我该如何解决?

1 个答案:

答案 0 :(得分:0)

第一个选项是单击Install Repository并同步项目, 如果该剂量工作,那么您需要手动从依赖项中添加存储库,请转到文件>项目结构>依赖 点击+>图书馆依赖 并搜索缺少的存储库 enter image description here

相关问题