不允许的分数类型

Fraction types not allowed

我正在使用 Android Studio 2.2.3 创建一个 Android 应用程序,但我不明白为什么会收到此错误消息:

Error:(336, 49) Fraction types not allowed (at 'abc_dialog_fixed_height_major' with value '80%').

这是生成的文件:

...\app\build\intermediates\res\merged\debug\values\values.xml

这几行:

...
<dimen name="abc_control_inset_material">4dp</dimen>
<dimen name="abc_control_padding_material">4dp</dimen>
<dimen name="abc_dialog_fixed_height_major">80%</dimen>
<item name="abc_dialog_fixed_height_minor" type="dimen">100%</item>
<dimen name="abc_dialog_fixed_width_major">320dp</dimen>
...

我的 gradle 文件如下所示:

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
    applicationId "com.oe_ba.hadis"
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.google.code.gson:gson:2.7'
compile 'com.android.support:recyclerview-v7:+'
compile 'com.android.support:cardview-v7:+'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'com.jakewharton.timber:timber:4.5.0'
compile 'com.afollestad.material-dialogs:core:0.9.2.3'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
compile 'com.jenzz:materialpreference:1.3'
compile 'com.malinskiy:superrecyclerview:1.1.4'
testCompile 'junit:junit:4.12'
}

您应该使用项目 type="fraction" 作为百分比值。您可以找到更多信息 here.