[ ] 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
答案 0 :(得分: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。 它会起作用!