2015-08-18 195 views
1

由於我將compileSdkVersion22增加到23,因此我無法生成簽名的APK。
每次我嘗試生成簽名的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,但它沒有解決問題。

+1

你的'build.gradle'在哪裏?你的錯誤在哪裏? –

+1

com.android.support:appcompat-v7:23.2.1不存在 –

回答

4

您正在嘗試使用不存在的支持庫版本。最新版本的支持庫是23.0.0,而不是23.2.1。

compile 'com.android.support:appcompat-v7:23.2.1'替換爲compile 'com.android.support:appcompat-v7:23.0.0'

+1

非常感謝!問題解決了! – avi12