代码之家  ›  专栏  ›  技术社区  ›  Hector

无法解析资源@android:color/…和不可见复选框

  •  -1
  • Hector  · 技术社区  · 9 年前

    我有这个问题,我不知道什么时候开始的。我以前没有这个问题。

    enter image description here

    由于此错误 Checkbox 没有出现在 Android 5/6 但它在 Android 4 。我是说这个

    enter image description here enter image description here

    我在不同的设备上测试了该应用程序

    • 6.0.1设备->没有盒子。
    • 5.1.1设备->没有盒子。
    • 4.0.3设备->普通框。

    我试过用 AppCompatCheckBox 而是直接 复选框 ,但错误和问题仍然存在。

    Gradle公司

    compileSdkVersion 23
    buildToolsVersion "23.0.2"
    
    defaultConfig {
        applicationId "com.aaa.bbb"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 15
        versionName "0.1"
        renderscriptTargetApi 23
        renderscriptSupportModeEnabled true
    }
    

    dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:recyclerview-v7:23.1.1'
    

    我错过了什么?我做了什么?

    1 回复  |  直到 9 年前
        1
  •  0
  •   Hector    9 年前

    这是Carbon库版本0.12.0中与样式相关的问题。降级到0.11.0可以修复它。