Android Studio 使用教程(十五)之 This support library should not use a different version(x)than the compileS

来源:互联网 发布:网络吸毒案 编辑:程序博客网 时间:2024/05/22 15:58

Androidstudio编写代码时遇到下列错误

 

This support library should not use a different version(x)than the compileSdkVersion(y)


原因就是导入的包和compileSdkVersion不一致

正确方式:


compileSdkVersion 24buildToolsVersion "25.0.2"

compile 'com.android.support:support-v4:24.X.X-alpha1'compile 'com.android.support:appcompat-v7:24.X.X-alpha1'


阅读全文
0 0
原创粉丝点击