相关疑难解决方法(0)

找不到com.android.support:support-annotations:26.1.0

我有一个项目,其中compileSdkVersiontargetSdkVersion是25.当我尝试将版本升级到26时,我收到以下错误:

Could not find com.android.support:support-annotations:26.1.0.
Required by:
    project :app
    project :app > com.android.support:support-compat:26.1.0

Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager
Run Code Online (Sandbox Code Playgroud)

我打开了Android SDK Manager,但找不到要安装的Android Support Repository.

我该如何解决这个问题?

这是我的应用程序和项目gradle文件:

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'io.fabric'

android {
    compileSdkVersion 26
    buildToolsVersion '26.0.3'

    defaultConfig {
        //my default config
    }

    signingConfigs {
        config {
            //config
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
        debug …
Run Code Online (Sandbox Code Playgroud)

sdk android

10
推荐指数
1
解决办法
4021
查看次数

标签 统计

android ×1

sdk ×1