无法将 android:overlapAnchor 与 appcompat-v7:23.0.0 一起使用
Unable to use android:overlapAnchor with appcompat-v7:23.0.0
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.lokesh.music.player.ui"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}
gradle 文件
错误:android:overlapAnchor 至少需要 API 21。
我正在使用最小值。 API 16
如何解决这个错误?
我是 android 的新手,所以任何帮助都会很棒
在styles.xml
中使用<item name="overlapAnchor">...</item>
。然后在 values-v21
文件夹中创建另一个 styles.xml
。您可以在此文件中使用 android:overlapAnchor
。
希望对您有所帮助。
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.lokesh.music.player.ui"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}
gradle 文件
错误:android:overlapAnchor 至少需要 API 21。 我正在使用最小值。 API 16 如何解决这个错误? 我是 android 的新手,所以任何帮助都会很棒
在styles.xml
中使用<item name="overlapAnchor">...</item>
。然后在 values-v21
文件夹中创建另一个 styles.xml
。您可以在此文件中使用 android:overlapAnchor
。
希望对您有所帮助。