如何在android.mk中实现androidx工作运行时?

问题描述

我正在尝试将一个库添加到我的Android.mk文件中,但是我还没有成功。 在build.gradle文件中有该库的实现,如下所示;

implementation "androidx.work:work-runtime:2.4.0"

在Android.mk文件中,我使用了类似的内容;

LOCAL_STATIC_ANDROID_LIBRARIES := \
    androidx.work_work-runtime

但是,在构建项目时会出现错误。

error: MyApp (APPS android-arm) missing androidx.work_work-runtime (JAVA_LIBRARIES android-arm) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional,but that may defer real problems until later in the build.
build/make/core/main.mk:846: error: exiting from previous errors.

所以,如果有人可以在这里帮助我,我会很高兴。谢谢!!!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)