升级Android Studio后Android Studio构建错误 [英] Android Studio Build Error After Upgrading Android Studio

查看:36
本文介绍了升级Android Studio后Android Studio构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天升级到Android Studio 1.3.1 后,在构建项目时出现此错误,我无法创建新项目.在下面添加错误和 build.gradle 文件:

After upgrading to Android Studio 1.3.1 yesterday, Getting this error when building projects, I cannot create a new project. Adding error and build.gradle file below :

已经尝试将 compileSdkVersionbuildToolVersion 更改为 21.

Alredy tried changing compileSdkVersion and buildToolVersion to 21.

推荐答案

支持库的每个主要修订版,例如您正在使用的 23.0.0 AppCompat,都会根据 API 级别进行编译相同的数字:即 API 23,根据 AppCompat 开发人员的这篇 G+ 帖子.因此,要使用 23.0.0,您必须将 compileSdkVersion 更新为 23.

Every major revision of the Support Library, such as the 23.0.0 AppCompat you are using, compiles against the API level of the same number: i.e., API 23 as per this G+ post from the AppCompat developer. Therefore to use 23.0.0, you must update your compileSdkVersion to 23.

请注意,这与 targeting API 23 完全不同(可以单独完成,这是使用运行时权限模型所必需的).

Note this is completely different from targeting API 23 (which can be done separately and is what is required to use the runtime permissions model).

这篇关于升级Android Studio后Android Studio构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆