找不到com.android.support:appcompat-v7:26.0.1

时间:2018-10-24 12:09:09

标签: android android-studio

我已经将Android项目从版本23更新到了26。我收到以下错误消息。有想法吗?

Could not find com.android.support:appcompat-v7:26.0.1.
Required by:
    project :app

Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager

enter image description here

1 个答案:

答案 0 :(得分:0)

在android gradle文件中,您需要指定以下内容:

compileSdkVersion 26
buildToolsVersion "26.0.1"

然后,找到文本compile "com.android.support:appcompat-v7" 并确保它说

compile "com.android.support:appcompat-v7:26.0.1"