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

failed to find: com.android.support:appcompat-v7:22.2.0

我正在使用 Android Studio。我使用浮动操作按钮,所以当我使用它时会出现错误并告诉我将 android 支持库 v7 更新到 22.2.0 版本。 所以当我将 v7 支持库更新到 22.2.0 版本并进行同步时,它给我错误 failed to find: com.android.support:appcompat-v7:22.2.0 version。 如何解决这个错误?

如果您使用的是 Android Studio,请确保您使用 SDK 管理器[=10= 下载了支持存储库]

使用以下部分更新您的 gradle 文件:

dependencies {
    ...
    compile 'com.android.support:design:22.2.1'
    compile 'com.android.support:recyclerview-v7:22.2.1'
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.android.support:cardview-v7:22.2.1'
}

只需更新您的 support library and support repository & your SDK Manager , 那么

compile 'com.android.support:appcompat-v7:22.2.0'

请检查这个