-
Notifications
You must be signed in to change notification settings - Fork 1.5k
App not launching in Android Flutter 3.10 #953
Comments
This app requires |
I have encountered the same problem as well. |
Please provide |
same issue here |
There are a few things to fix |
same problem: $ flutter doctor -v
[✓] Flutter (Channel stable, 3.10.6, on Manjaro Linux 6.4.3-1-MANJARO, locale zh_CN.UTF-8)
• Flutter version 3.10.6 on channel stable at /opt/flutter
• Upstream repository https:/flutter/flutter.git
• Framework revision f468f3366c (13 天前), 2023-07-12 15:19:05 -0700
• Engine revision cdbeda788a
• Dart version 3.0.6
• DevTools version 2.23.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /home/chenkun/Android/Sdk
• Platform android-33, build-tools 33.0.1
• Java binary at:
/home/chenkun/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/223.8836.35.2231.10406996/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = google-chrome-stable
[✓] Linux toolchain - develop for Linux desktop
• clang version 15.0.7
• cmake version 3.26.4
• ninja version 1.11.1
• pkg-config version 1.8.1
[✓] Android Studio (version 2022.3)
• Android Studio at
/home/chenkun/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/223.8836.35.2231.10406996
• Flutter plugin version 74.0.3
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] Android Studio (version 2022.2)
• Android Studio at
/home/chenkun/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.10121639
• Flutter plugin version 74.0.2
• Dart plugin version 222.4582
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
[✓] Android Studio (version 2022.1)
• Android Studio at /opt/android-studio
• Flutter plugin version 72.1.2
• Dart plugin version 221.6103.1
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1)
• IntelliJ at /home/chenkun/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-1/231.9392.1
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] Connected device (3 available)
• RNA AN00 (mobile) • adb-AVYYUT1910008906-ETAnA7._adb-tls-connect._tcp • android-arm64 • Android 12 (API 31)
• Linux (desktop) • linux • linux-x64 • Manjaro Linux
6.4.3-1-MANJARO
• Chrome (web) • chrome • web-javascript • Google Chrome
115.0.5790.110
[✓] Network resources
• All expected network resources are available.
• No issues found! $ git rev-parse HEAD
873b7054da3ae56f099df92405eed4fc406498af |
Please see #953 (comment) |
great! |
Existing issue?
What happened?
Expected vs actual result:
I cloned the repo to try to run it on an Android device. I expected to run the app locally. First, I executed:
flutter pub get
flutter pub upgrade
to update libraries and get ready to launch the project. However, after executing
flutter run
, it failed to launch with the following error: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
I tried doing what the prompt says: creating another project and moving the code to that one. However, it still doesn't work. Running
flutter clean
doesn't seem to fix it out. I also ranflutter doctor
to check if something was wrong and it doesn't seem like anything's wrong.Steps to reproduce:
Flutter 3.10
Issues related
Some weeks ago someone already pointed out this problem in #950 but that issues was closed after #948 made a pull request with changes to fix it for macOs. Unfortunately, those changes don't fix it for Android.
Relevant log output
The text was updated successfully, but these errors were encountered: