Open yieniggu opened 2 months ago
@yieniggu I need to know the version of FVM. Also, if you are using VSCode, after you switch, can you clear the terminal and just run "flutter" without the FVM prefix? FVM configures the Flutter VSCode settings, so in this case, it would not proxy the commands anymore, which might provide better visibility on what the problem could be.
I'm indeed using vs and after switching the version I can run flutter commands.
FVM version is 3.1.3
If this issue does not happen on the latest stable when you do the same thing, it does not seem that this would be an fvm
issue, the commands are not been proxied in this case.
I changed the version to a much older one (2.0.0) and set it as global. Still getting the same output, or do I need to take extra steps?
╔════════════════════════════════════════════════════════════════════════════╗
║ A new version of Flutter is available! ║
║ ║
║ To update to the latest version, run "flutter upgrade". ║
╚════════════════════════════════════════════════════════════════════════════╝
Downloading Material fonts... 866ms
Downloading Gradle Wrapper... 244ms
Downloading package sky_engine... 1,349ms
Downloading flutter_patched_sdk tools... 1,480ms
Downloading flutter_patched_sdk_product tools... 1,527ms
Downloading linux-x64 tools... 2,376ms
Downloading linux-x64/font-subset tools... 1,136ms
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.0, on Linux, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
✗ No Java Development Kit (JDK) found; You must have the environment variable JAVA_HOME set and the java binary in your PATH. You can download the JDK from
https://www.oracle.com/technetwork/java/javase/downloads/.
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] Connected device (2 available)
! Doctor found issues in 2 categories.
Before creating a bug report please make check the following
pub cache repair
. Close the terminal and try again.administrator
or withdeveloper
permissions.fvm doctor
if possible and add the output to the issue.Describe the bug I set the latest stable version of flutter as global and it works fine, I just created and tested a project.
fvm flutter doctor
ouputs:However I'm trying to reproduce an example where Dart version is >=2.12.0 <=3.0.0. I try to use flutter v3.7.12 wich uses dart v2.19.6 to meet the constraints. However when I change the version with
fvm use 3.7.12
, flutter doctor outputs:And when I try to run the app on debug mode:
Honestly don't know if this is the expected behaviour or need some extra steps. Thanks in advance for any help!