在根项目“connectivity”中找不到任务“assembleAarRelease”

时间:2021-02-01 13:00:04

标签: flutter dart flutter-apk

[ ] 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

1 个答案:

答案 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。 它会起作用!