在android-support-v7-appcompat中没有样式的父级

时间:2016-01-29 02:59:30

标签: android android-support-library android-build android-sdk-2.3

我导入了support-v7-appcompat库,在构建过程中我遇到了以下问题:

secondAdapter

线(380,5):

Error:(380, 5) String types not allowed (at 'blue' with value '').
app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.1.1\res\values\values.xml

我目前正在使用支持库的23.1.1版本。每次构建应用程序时都会出现此问题。我试过清理代码。

build.gradle:

<style name="Base.TextAppearance.AppCompat.SearchResult" parent="">
    <item name="android:textStyle">normal</item>
    <item name="android:textColor">?android:textColorPrimary</item>
    <item name="android:textColorHint">?android:textColorHint</item>
</style>

如何解决此问题?

1 个答案:

答案 0 :(得分:0)

尝试更改:

compileSdkVersion 'Google Inc.:Google APIs:23'

使用:

compileSdkVersion 23
相关问题