我在使用已编译的SDK版本调整我的Recycler视图库版本时遇到问题,如错误。
我的代码如下: -
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "com.example.users.recyclerviewreloaded"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:+'
compile 'com.android.support:recyclerview-v7:25.1.1'
}
答案 0 :(得分:0)
更新您的compileSdkVersion和buildToolsVersion
compileSdkVersion 25 and buildToolsVersion "25.0.2"