flutter / flutter-intellij

Flutter Plugin for IntelliJ
https://flutter.dev/using-ide
BSD 3-Clause "New" or "Revised" License
1.95k stars 314 forks source link

unable to open android module in android studio #7179

Open amitabhleo opened 5 months ago

amitabhleo commented 5 months ago

Thanks for the feedback! If your issue is related to the Flutter framework itself, please open an issue at github.com/flutter/flutter.

Steps to Reproduce

Please tell us what you were doing and what went wrong

Version info

Please paste the output of running flutter doctor -v here (available from the command line or from Tools > Flutter > Flutter Doctor). It will provide the version of the Flutter framework as well as of the IntelliJ plugin.

/home/amitabhleo/Android/flutter/bin/flutter doctor --verbose [!] Flutter (Channel beta, 3.14.0-0.2.pre, on Ubuntu 22.04.3 LTS 6.2.0-36-generic, locale en_IN) • Flutter version 3.14.0-0.2.pre on channel beta at /home/amitabhleo/Android/flutter ! The flutter binary is not on your path. Consider adding /home/amitabhleo/Android/flutter/bin to your path. ! The dart binary is not on your path. Consider adding /home/amitabhleo/Android/flutter/bin to your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision 123453dc41 (5 months ago), 2023-08-31 13:50:44 -0700 • Engine revision b93c76ab94 • Dart version 3.2.0 (build 3.2.0-42.2.beta) • DevTools version 2.26.1 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /home/amitabhleo/Android/Sdk • Platform android-33, build-tools 34.0.0 • ANDROID_HOME = /home/amitabhleo/Android/Sdk • Java binary at: /snap/android-studio/144/jbr/bin/java • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) • All Android licenses accepted.

[✓] Chrome - develop for the web • Chrome at google-chrome

[✗] Linux toolchain - develop for Linux desktop ✗ clang++ is required for Linux development. It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/ ✗ CMake is required for Linux development. It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/ ✗ ninja is required for Linux development. It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases • pkg-config version 0.29.2 ✗ GTK 3.0 development libraries are required for Linux development. They are likely available from your distribution (e.g.: apt install libgtk-3-dev)

[✓] Android Studio (version 2023.1) • Android Studio at /snap/android-studio/144 • Flutter plugin version 77.1.2 • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] Android Studio (version 2022.3) • Android Studio at /snap/android-studio/128/android-studio • Flutter plugin version 76.1.2 • 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)

[✓] VS Code (version 1.68.1) • VS Code at /usr/share/code • Flutter extension version 3.54.0

[✓] VS Code (version unknown) • VS Code at /snap/code/current • Flutter extension version 3.54.0 ✗ Unable to determine VS Code version.

[✓] Connected device (2 available) • Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.3 LTS 6.2.0-36-generic • Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.216

[✓] Network resources • All expected network resources are available.

! Doctor found issues in 2 categories. Process finished with exit code 0

gigafunk commented 1 month ago

this has been like this on my m2 mac for at least a year, ever since i been learning flutter. you just have to manually adjust the version number in android/local.properties and open the android folder yourself in another android studio window. android studio throws an error about the method being used for new projects only. sound like android studio added another method for exist projects being opened and flutter need to change to that, but considering its an easy workaround once you know, it probably wont get fixed for a while longer