无法生成签名的 APK

Cannot generate signed APK

由于我将 compileSdkVersion22 递增到 23,因此无法生成已签名的 APK。
每次我尝试生成签名的 APK 时,我都会收到此错误:

Failed to resolve: com.android.support:appcompat-v7:23.2.1

当我点击 Install Repository and sync project 时,出现此错误:

Ignoring unknown package filter 'extra-android-m2repository' Warning: The package filter removed all packages. There is nothing to install. Please consider trying to update again without a package filter.

此外,我有互联网连接。
我尝试使用 SDK Manager 更新库,并重新启动 Android Studio,但没有解决问题。

您正在尝试使用不存在的支持库版本。支持库最新版本是23.0.0,不是23.2.1.

compile 'com.android.support:appcompat-v7:23.2.1' 替换为 compile 'com.android.support:appcompat-v7:23.0.0'