无法解决:com.android.support:support-core-utils:25.3.1

时间:2017-03-31 05:21:15

标签: android android-studio android-gradle

我最近使用最新的sdk工具和存储库将我的Android Studio更新为api 25。但我现在让gradle项目同步失败了。基本功能无法正常运行错误,更新后没有任何工作。我如何纠正这个让Android工作室重新工作?

注意:如果被要求,我可以附上必要的屏幕截图或文件。

应用级Gradle文件

apply plugin: 'com.android.application'

android {

compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
    applicationId "com.example.aadithyavarma.test"
    minSdkVersion 23
    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'
    }
}
productFlavors {
}
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    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:support-fragment:25.3.1'
compile 'com.android.support:support-core-ui:25.3.1'
compile 'com.android.support:support-compat:25.3.1'
compile 'com.android.support:support-media-compat:25.3.1'
compile 'com.android.support:support-core-utils:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:support-annotations:25.3.1'
testCompile 'junit:junit:4.12'
}

错误文件

Error:Error:Failed to resolve: com.android.support:support-fragment:25.3.1
Error:Error:Failed to resolve: com.android.support:support-core-ui:25.3.1
Error:Error:Failed to resolve: com.android.support:support-compat:25.3.1
Error:Error:Failed to resolve: com.android.support:support-media-compat:25.3.1
Error:Error:Failed to resolve: com.android.support:support-core-utils:25.3.1
Error:Error:Failed to resolve: com.android.support:recyclerview-v7:25.3.1
Error:Error:Failed to resolve: com.android.support:support-annotations:25.3.1

0 个答案:

没有答案