Yash Sharma
Yash Sharma

Reputation: 181

Minimum supported Gradle version is 5.6.4. Current version is 5.6.2. I've been trying to resolve this error in Flutter for past 4 hours but can't

FAILURE: Build failed with an exception.

BUILD FAILED in 1s Finished with error: Gradle task assembleDebug failed with exit code 1

Even after editing wrapper class I am getting this:

FAILURE: Build failed with an exception.

BUILD FAILED in 18s Finished with error: Gradle task assembleDebug failed with exit code 1

Upvotes: 1

Views: 1875

Answers (1)

MαπμQμαπkγVπ.0
MαπμQμαπkγVπ.0

Reputation: 6737

Try to fix your problem using the workaround here, especially this steps after editing your wrapper class:

  1. Running a flutter pub cache repair once might help.
  2. Do flutter clean between version changes (and other changes, as seen below, that are local to your project).
  3. You might have to edit pub-cache files to get things to work, so make sure you're at the versions you want. Then you cannot repeat the cache repair without making those changes again.

Upvotes: 1

Related Questions