私のアプリに下部バーを実装しようとしています。私はAPIレベルが23未満のときにアンドロイドの下部バーを統合することはできません
- https://github.com/roughike/BottomBar
- https://github.com/aurelhubert/ahbottomnavigation
- https://github.com/sephiroth74/Material-BottomNavigation
のようないくつかのライブラリを試してみましたが、しかし、問題は遵守SDKのバージョンが23未満であるとき、私は、これらのライブラリのいずれかを統合することはできませんです。私はそれを統合しようとした場合、それは述べています。ここ
/home/user/droid-work/TestBBar/app/build/intermediates/res/merged/debug/values-v23/values-v23.xml
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(34) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/root/Android/Sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
は私のbuild.gradleファイル
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.example.testbbar"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:design:22.2.1'
compile 'com.aurelhubert:ahbottomnavigation:1.3.3'
//or compile 'com.roughike:bottom-bar:1.4.0.1'
//or compile 'it.sephiroth.android.library.bottomnavigation:bottom-navigation:1.0.7'
}
コンパイルSDKのバージョンは、サポートライブラリのメジャーバージョンと一致する必要があります。サポートライブラリのバージョン23を使用しているので、Android SDKのバージョン23に対してコンパイルする必要があります。 また、最新のサポートライブラリv22に切り替えることで、Android SDKのバージョン22に対してコンパイルを続けることもできます。 Courtsy:[Here](http://stackoverflow.com/questions/32075498/error-retrieving-parent-for-item-no-resource-found-that-matches-the-given-name) – LvN