首页 > 解决方案 > 分发 4.10.2 后的 gradle 问题

问题描述

我按照所有建议进行 androidX 迁移,但是当我更改分布时

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

我有这个错误

The Gradle project does not define a task suitable for the requested build.
Review the android/app/build.gradle file and ensure it defines a debug build type.

FAILURE: Build failed with an exception.

* What went wrong:
Task 'null' not found in root project 'android'.

我不知道该怎么办

标签: gradleflutter

解决方案


推荐阅读