I have problems to understand the version scheme of the support libraries and when to use which version. Currently I have a project with compileSdkVersion 21
, minSdkVersion 21
and targetSdkVersion 21
and want to use the android design support library.
When I use com.android.support:design:22.2.0
the project compiles but I get a Gradle warning:
"This support library should not use a different version (22) than the `compileSdkVersion` (21)".
When I use com.android.support:design:23.0.1
I get some compilation errors like:
"Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
I thought I can use always the highest version of the support libraries as long as the compileSdkVersion
is lower or equal, but that seems wrong.
Can I use the design support library when compiling against API level 21?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…