[英]Cannot generate signed APK
Since I incremented the compileSdkVersion
from 22
to 23
, I cannot generate a signed APK. 由于我将
compileSdkVersion
从22
增加到23
,因此无法生成带符号的APK。
Every time I try to generate the signed APK, I receive this error: 每当我尝试生成签名的APK时,都会收到此错误:
Failed to resolve: com.android.support:appcompat-v7:23.2.1
无法解决:com.android.support:appcompat-v7:23.2.1
When I click on Install Repository and sync project
, I get this error: 当我单击“
Install Repository and sync project
,出现此错误:
Ignoring unknown package filter 'extra-android-m2repository' Warning: The package filter removed all packages.
忽略未知的软件包过滤器'extra-android-m2repository'警告:软件包过滤器删除了所有软件包。 There is nothing to install.
没有要安装的内容。 Please consider trying to update again without a package filter.
请考虑尝试在没有包过滤器的情况下再次更新。
Also, I have an internet connection. 另外,我有互联网连接。
I tried to update libraries using SDK Manager, and also restart Android Studio, but it did not resolve the problem. 我尝试使用SDK Manager更新库,并且还重新启动了Android Studio,但无法解决问题。
You are trying to use a non-existent version of the support library. 您正在尝试使用不存在的支持库版本。 The latest version of the support library is 23.0.0, not 23.2.1.
支持库的最新版本是23.0.0,而不是23.2.1。
Replace compile 'com.android.support:appcompat-v7:23.2.1'
with compile 'com.android.support:appcompat-v7:23.0.0'
. 用
compile 'com.android.support:appcompat-v7:23.2.1'
替换compile 'com.android.support:appcompat-v7:23.0.0'
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.