我正在使用Android Studio,当我在compile 'com.android.support:appcompat-v7:27.1.0'
中添加compile 'com.android.support:design:27.1.0'
和build.gradle
时,我在values.xml
中收到以下错误:
错误:(524)属性“font”已使用不兼容的格式定义。
错误:(459)此处定义了原始属性。错误:(524)属性 “font”已经使用不兼容的格式定义。
错误:(459)此处定义了原始属性。错误:任务':app:processDebugResources'的执行失败。 com.android.ide.common.process.ProcessException:无法执行aapt
项目build.gradle
apply plugin: 'com.android.application'
dependencies { provided fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:27.1.0' compile 'com.android.support:design:27.1.0'
compile project(':commons-lang3-3.4')
compile 'com.github.siyamed:android-shape-imageview:0.9.3'
compile 'com.google.code.gson:gson:2.2.2'
compile 'cz.msebera.android:httpclient:4.4.1.1'
compile 'it.neokree:MaterialTabs:0.11'
compile 'com.microsoft.azure:azure-mobile-android:3.1.0'
compile 'com.google.guava:guava:18.0'
compile 'org.adw.library:discrete-seekbar:1.0.1'
compile 'com.microsoft.azure.android:azure-storage-android:0.6.0@aar'
compile project(':azure-notifications-handler-1.0.1')
compile project(':notification-hubs-0.4')
compile project(':gcm')
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'com.android.support:cardview-v7:21.0.+'
compile 'com.android.support:recyclerview-v7:21.0.+'
compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services-gcm:9.2.0'
compile 'com.google.firebase:firebase-messaging:9.2.0'
compile 'com.google.android.gms:play-services-appindexing:9.2.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.chrisbanes.photoview:library:1.2.4'
compile 'com.android.volley:volley:1.0.0'
compile 'id.zelory:compressor:2.1.0'
}
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.relecotech.androidsparsh"
versionCode 6
versionName "4.2"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/MSFTSIG.RSA'
exclude 'META-INF/MSFTSIG.SF'
}
dexOptions {
javaMaxHeapSize "4g"
}
}