2017-01-15 3 views
3

を許可されていませんフラクションタイプIは、Android Studioの2.2.3とAndroidのアプリケーションを作成していると私は、このエラーメッセージが出ていなぜ私は理解できない

... 
<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のファイルは、次のようになります:

この線で

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

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' 
} 

答えて

1

パーセント値には、type="fraction"を使用してください。詳細hereを見つけることができます。

+0

しかし、私はそのファイルで何も変更できません。 Android自体によって生成されます。再構築しようとすると、そのファイルの変更がリセットされ、エラーが再び表示されます。 –

+1

Androidの[merges](https://developer.android.com/studio/write/add-resources.html#resource_merging)には、別のファイルのすべての値が入ります。 '\ app \ build \ intermediates \ res \ merged \ debug \ values \ values.xml'のパスを見てください。これは、生成(結合)されたファイルです。したがって、XMLファイルの問題を検索する必要があります。 –

関連する問題