错误:程序包androidx.work不存在

时间:2019-04-04 03:12:42

标签: android androidx

我从Android Studio创建了一个新项目,当尝试使用androidx.work时,看到错误“错误:包androidx.work不存在”

我可以看到其他大多数androidx软件包,例如活动,核心,加载程序等,但看不到“工作”。具有最新,最伟大的更新。

gradle.properties项目

# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

1 个答案:

答案 0 :(得分:1)

在应用级别gradle中使用以下库:

implementation 'androidx.work:work-runtime:2.0.1-rc01'

代替

implementation 'android.arch.work:work-runtime:2.0.1-rc01'