flutter-rust-ffi
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"
Steps to reproduce
- clone the repo.
- cd inside
- start an eligible x86 Android Emulator
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!
any update
any update on this?
having the same issue after updating to flutter 3.10.5