Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Android Studio cannot change the project's Flutter SDK path #767

Open
4 tasks done
EthanZhuGit opened this issue Aug 26, 2024 · 3 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@EthanZhuGit
Copy link

Before creating a bug report please make check the following

  • You have read our FAQ
  • If you have used flutter. Please install correctly, run pub cache repair. Close the terminal and try again.
  • If you are on Windows. Make sure you are running the terminal as administrator or with developer permissions.
  • Run fvm doctor if possible and add the output to the issue.

Describe the bug
I set default flutter version by execute command fvm global 3.24.1 as administrator in Windows 11
When I create a new flutter project , the project's flutter sdk path is the path of previous projects which android studio opened; If i change it to the path in .fvm directory , it seems to have been modified successfully

before

but after click apply button, the path changes
after

To Reproduce
Steps to reproduce the behavior:

  1. Go to terminal..
  2. Run fvm use stable...
  3. Check...
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Logs
Please provide the verbose logs by running --verbose after the command.

Desktop (please complete the following information):

  • OS: [Windows 11]
  • FVM Version [3.1.7]
  • If Windows: powershell

Additional context
Add any other context about the problem here.

@EthanZhuGit EthanZhuGit added the bug Something isn't working label Aug 26, 2024
@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
@BetterB0y
Copy link

I have the same issue

@tjarvstrand
Copy link

tjarvstrand commented Dec 4, 2024

I have the same problem on linux using asdf-vm so I don't think this is fvm-specific.

EDIT: The old classic "Invalidate caches" fixed it for me. Have you tried that?

@BetterB0y
Copy link

BetterB0y commented Dec 4, 2024

I tried invalidate caches multiple times over time of using fvm. It always changes fvm path. Like its not respecting links / symlinks.

I've noticed sometimes it changes to .fvm of other project, sometimes for directory where flutter actually is (following links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants
@tjarvstrand @EthanZhuGit @BetterB0y and others