我想将Android Studio中的最低SDK版本从API 23更改为API 16.并将目标版本修改为22。 apply plugin:'com.android.library'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
// versionCode 1
// versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:22.2.0'
// compile 'com.android.support:design:23.1.0'
compile files('libs/classes.jar')
}
//task to delete the old jar
task deleteOldJar(type: Delete) {
delete 'release/AndroidPlugin.jar'
}
//task to export contents as jar
task exportJar(type: Copy) {
from('build/intermediates/bundles/release/')
into('release/')
include('classes.jar')
///Rename the jar
rename('classes.jar', 'AndroidPlugin.jar')
}
exportJar.dependsOn(deleteOldJar, build)
我找不到任何设计库: com.android.support:design:23.1.0 结果我是我的 找不到与给定名称匹配的资源(在'layout_behavior'中,值为'@ string / appbar_scrolling_view_behavior') 和 错误:(2)在'com.votel.gpslocation'包中找不到属性'layout_behavior'的资源标识符 我附上一个屏幕截图
答案 0 :(得分:0)
由于您使用的是compileSdkVersion = 22,因此您应该使用版本为22.x的设计支持库,例如com.android.support:design:22.2.0或com.android.support:design:22.2.1