如何正确修复“此项目使用AndroidX依赖项,但未启用'android.useAndroidX'属性”在Unity 2019中

问题描述

在Unity 2019中实现Google Play游戏后出现错误,我使用的是Google ARcore和适用于Android的Google Play游戏。我以前从未遇到过这个问题,并且在论坛上在线阅读了一些答案,但是它们都无法正常工作。 有人知道如何解决此错误吗? 我已经尝试过更改mainTemplate.gradle文件,但是它不起作用。

我得到的错误是:

Could not determine the dependencies of task ':launcher:lintVitalRelease'.
This project uses AndroidX dependencies,but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

解决方法

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

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

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

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...