flutter-rust-ffi icon indicating copy to clipboard operation
flutter-rust-ffi copied to clipboard

Error on flutter run: "Your app is using an unsupported Gradle project. To fix this problem, create a new project"

Open florianrein opened this issue 4 years ago • 3 comments

Steps to reproduce

  1. clone the repo.
  2. cd inside
  3. start an eligible x86 Android Emulator
  4. flutter run lib/mylib.dart

Result

$ flutter run lib/mylib.dart Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering". Launching lib/mylib.dart on Android SDK built for x86 in debug mode... Exception: [!] Your app is using an unsupported Gradle project. To fix this problem, create a new project by running flutter create -t app <app-directory> and then move the dart code, assets and pubspec.yaml to the new project.

Notes

The same happens after renaming mylib.dart to main.dart and do flutter run.

flutter doctor

$ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.4 19E287 darwin-x64, locale de-DE) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.0) [✓] VS Code (version 1.55.2) [✓] Connected device (2 available)

• No issues found!

florianrein avatar Apr 23 '21 23:04 florianrein

any update

s4rath avatar May 27 '23 13:05 s4rath

any update on this?

nc-jeni avatar Jun 09 '23 08:06 nc-jeni

having the same issue after updating to flutter 3.10.5

Sarraj-Sahar avatar Jun 22 '23 17:06 Sarraj-Sahar