0

Steps to reproduce melos clean && melos bootstrap fvm flutter pub get fvm flutter pub upgrade fvm flutter pub run build_runner clean fvm flutter pub run build_runner build --delete-conflicting-outputs running project

FAILURE: Build failed with an exception.

  • Where: Build file '/Users/herisarwanto/AndroidStudioProjects/FREELANCE/99Group/NEW-Rumah123-Pro/rumah123-pro-apps/packages/app/android/app/build.gradle' line: 4

  • What went wrong: An exception occurred applying plugin request [id: 'dev.flutter.flutter-gradle-plugin']

Failed to apply plugin 'dev.flutter.flutter-gradle-plugin'. Could not get unknown property 'usesUnsupportedDependencyVersions' for project ':app' of type org.gradle.api.Project.

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 2s Error: Gradle task assembleDevDebug failed with exit code 1

asked Sep 25, 2024 at 14:16

1 Answer 1

0

This issue has been resolved in my monorepo project by following these steps:

  1. Delete Gradle cache
  2. In the android directory, clean the project: ./gradlew clean
  3. In the /app directory, delete the .dart_tool folder, then run:
  • fvm flutter pub get
  • fvm flutter pub upgrade
  • fvm flutter pub run build_runner clean
  • fvm flutter pub run build_runner build --delete-conflicting-outputs
  1. In the root project directory, run: melos clean && melos bootstrap
answered Sep 26, 2024 at 8:04
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.