转载请标明出处:http://blog.csdn.net/xx326664162/article/details/49331531 文章出自:薛瑄的博客
你也可以查看我的其他同类文章,也会让你有一定的收货!
Your compile SDK version must match the support library’s major version.
Since you are using version 23 of the support library, you need to compile against version 23 of the Android SDK.
Alternatively you can continue compiling against version 22 of the Android SDK by switching to the latest support library v22.
以下代码中的第二行和倒数第二行要匹配
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:support-v4:19.1.0'
}