帖子
帖子
用户
博客
课程
12
返回列表 发新帖
2
帖子
0
勋章
16
Y币

2021-12-30 06:30  安卓打包错误依旧,急急急!请大佬赶紧恢复一下或解决解决吧
特特法爷 · 2021-12-29 23:11连续几次都报这个错吗
5
帖子
0
勋章
51
Y币
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.
同上 报错,无法编译
68
帖子
2
勋章
1万+
Y币
我这边打包也是也是相同错误
167
帖子
2
勋章
1万+
Y币
2021-12-30 09:12:52

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> 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.
  The following AndroidX dependencies are detected: androidx.collection:collection:1.0.0, androidx.core:core:1.1.0, androidx.versionedparcelable:versionedparcelable:1.1.0, androidx.lifecycle:lifecycle-common:2.0.0, androidx.arch.core:core-common:2.0.0, androidx.lifecycle:lifecycle-runtime:2.0.0, androidx.annotation:annotation:1.1.0

* 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.

* Get more help at https://help**.**

BUILD FAILED in 10s
现在可以了,试一下吧
12
您需要登录后才可以回帖 登录

本版积分规则