Android Studio Build Error After Upgrading Android Studio

血红的双手。 提交于 2019-12-09 01:48:55

问题


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 tried changing compileSdkVersion and buildToolVersion to 21.


回答1:


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.

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).



来源:https://stackoverflow.com/questions/32086602/android-studio-build-error-after-upgrading-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!