![](/img/trans.png)
[英]Why does Android Studio throw errors in the manifest file when we change the compileSdkVersion and targetSdkVersion from 26 to 23?
[英]Change compileSdkVersion From 23 to 21
compile 'com.android.support:design:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.android.support:support-v4:21.0.3'
compileSdkVersion和支持库的版本应始终具有相同的主版本值。
如果将compileSdkVersion
降级为API 21,则应将支持库版本降级为21.0.3。
如果出现以下错误:“安装存储库并同步项目”,则应按照此处的官方指南从Android Studio升级Android支持存储库 ,如下图所示。
更改一些行,如下所示:
compileSdkVersion 21
buildToolsVersion "21.0.3"
compile 'com.android.support:design:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.android.support:suppoert-v4:21.0.3'
如果仍然出现红线并显示错误,则需要安装适当的存储库或构建工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.