Android的Studio生成错误升级Android的工作室后, [英] Android Studio Build Error After Upgrading Android Studio

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

问题描述

升级到Android的工作室后, 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 :

错误

输入图像的描述在这里

Alredy试图改变 compileSdkVersion buildToolVersion 21

Alredy tried changing compileSdkVersion and buildToolVersion to 21.

推荐答案

支持库的每一个重大修改,如 23.0.0 AppCompat您使用,编译对相同数量的API级别:即23 API按照这个G +员额从AppCompat开发商。因此,要使用 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.

请注意,这是从的针对的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的工作室后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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