无法解析符号JobIntentService

0 android android-gradle-plugin android-jobscheduler

build.gradle我的项目上进行配置

compileSdkVersion 27
buildToolsVersion "23.0.3"

defaultConfig {
    applicationId "com.android.tt"
    minSdkVersion 16
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
    generatedDensities = []
}
Run Code Online (Sandbox Code Playgroud)

和以下支持库,我已经编译

compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:cardview-v7:25.1.0'
compile 'com.android.support:support-v4:25.1.0'
compile 'com.android.support:recyclerview-v7:25.1.0'
Run Code Online (Sandbox Code Playgroud)

当我尝试导入JobIntentService类时,它无法解决。下面的链接我正在尝试实现

JobIntentService

rup*_*eet 6

JobIntentService在支持库版本添加26.1.0从包com.android.support:support-compat

因此,更新您的gradle版本以获取支持库。

对于AndroidX:

implementation 'androidx.core:core:1.0.1'
Run Code Online (Sandbox Code Playgroud)