我有问题需要了解支持库的版本方案以及何时使用哪个版本。目前我有一个项目compileSdkVersion 21
,minSdkVersion 21
和targetSdkVersion 21
并且想使用android设计支持库。 当我使用com.android.support:design:22.2.0
项目编译,但我得到一个摇篮警告:设计支持库 - 使用SDK v21的哪个版本
"This support library should not use a different version (22) than the `compileSdkVersion` (21)".
当我使用com.android.support:design:23.0.1
我得到一些编译错误,如:
"Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
我以为我可以一直使用最高版本支持库只要compileSdkVersion
低于或等于,但这似乎是错误的。
编译API级别21时可以使用设计支持库吗?
你只能在你的情况下使用的版本直至并包括你的'compileSdkVersion',所以21 –