无法解析资源 @android:color/... 和不可见的复选框
Couldn't resolve resource @android:color/... and invisible checkbox
我遇到了这个问题,我不知道它是什么时候开始的。我以前没有这个问题。
由于此错误,Checkbox
中的实际框未出现在 Android 5/6
中,但出现在 Android 4
中。我是说这个
我在不同的设备上测试了应用,
- 6.0.1 设备 -> 无框。
- 5.1.1 设备 -> 无框。
- 4.0.3 设备 -> 普通框。
我尝试直接使用 AppCompatCheckBox
而不是 Checkbox
,但错误和问题仍然存在。
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'
我错过了什么?我做了什么?
这是 Carbon 库版本 0.12.0 的样式相关问题。降级到 0.11.0 修复它。
我遇到了这个问题,我不知道它是什么时候开始的。我以前没有这个问题。
由于此错误,Checkbox
中的实际框未出现在 Android 5/6
中,但出现在 Android 4
中。我是说这个
我在不同的设备上测试了应用,
- 6.0.1 设备 -> 无框。
- 5.1.1 设备 -> 无框。
- 4.0.3 设备 -> 普通框。
我尝试直接使用 AppCompatCheckBox
而不是 Checkbox
,但错误和问题仍然存在。
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'
我错过了什么?我做了什么?
这是 Carbon 库版本 0.12.0 的样式相关问题。降级到 0.11.0 修复它。