A recently decided to upgrade the lib from 12.6 to 1.3.1-alpha7 and while building, got the following errors:
ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex
My build.gradle looks like this:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.simpleapp"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.1'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
// Scheduler engine/ compat layer for AlarmManager, GCMNetworkManagerJobScheduler and other platform specific scheduling services
implementation 'com.evernote:android-job:1.2.6'
// JSON handling
implementation 'com.google.code.gson:gson:2.8.5'
implementation "com.google.android.gms:play-services-gcm:15.0.1"
// Networking
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
// Call recording module
implementation project(':recorder')
// Persistence
implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
Note that, I added 27.1.1 in the configuration force strategy to fix this only. Even without it, it gives the same error. How do I fix this?
This library depends on the support library 28. You need change the compile SDK to 28 and update your dependencies.
Most helpful comment
This library depends on the support library 28. You need change the compile SDK to 28 and update your dependencies.