2

[ ] FAILURE:构建失败并出现异常。

       * What went wrong:
       Task 'assembleAarRelease' not found in root project 'connectivity'.
       
       * Try:
       Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with

--info 或 --debug 选项以获得更多日志输出。运行 --scan 以获得完整的见解。

       * Get more help at https://help.gradle.org
       
       BUILD FAILED in 6s
4

1 回答 1

0

通过转到 ../app/gradle/wrapper/gradlle-wrapper.properties 并更改当前版本的 gradle 可以轻松解决此异常

distributionUrl=https://services.gradle.org/distributions/[your_current_version_of_gradle].zip

distributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip

如果你在'gradle.properties'中设置'org.gradle.configureondemand=true',请改为false。它会起作用的!

于 2021-07-21T12:51:35.883 回答