Android-job: Upgrade to 1.3.0-alpha7 results in build errors

Created on 24 Sep 2018  路  1Comment  路  Source: evernote/android-job

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?

question

Most helpful comment

This library depends on the support library 28. You need change the compile SDK to 28 and update your dependencies.

>All comments

This library depends on the support library 28. You need change the compile SDK to 28 and update your dependencies.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruhul015 picture ruhul015  路  4Comments

karntrehan picture karntrehan  路  5Comments

pyricau picture pyricau  路  7Comments

letos picture letos  路  4Comments

georgikoemdzhiev picture georgikoemdzhiev  路  4Comments