-
Notifications
You must be signed in to change notification settings - Fork 311
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
Flutter: unable to "Open Android Module in Android Studio" #7103
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
After a lot of attempts, my solution was downgrade Android Studio to Giraffe |
Here my solution. |
Same problem here, when trying to open Android Module a new window pops and instantly closes |
Same problem here. Generally, Hedgehog has proven to be unusually buggy so far :( |
I have reported this issue as well: #7154 |
ok..so I am not alone here. 3rd day trying to get sha codes |
Looks like this issue was first reported as #6915, and has had many duplicate reports since then: This is the thread that the most people seem to have found (in particular it has the most 👍 upvotes), so let's call this the main thread for the issue. |
Just for reference: https://issuetracker.google.com/issues/317706461 The immediate reaction there was "Flutter's to blame" but with Giraffe and Jellyfish not showing the same error with the same plugin, only Hedgehog, it's not entirely conclusive. Also, because one of the closed threads contained this info: the problem seems to hinge on the existence of the |
Has this been resolved or should I stick with Giraffe version for now? |
This comment was marked as off-topic.
This comment was marked as off-topic.
For me, the problem persists in Hedgehog. |
Go to File -> Open |
I'm sorry, but that may be true for you, but it is not for me, as well as some of the others here, it seems. |
What's probably misleading @MicroProgramer is that it works for the first time but not for the subsequent ones (unless the folder mentioned above is removed). |
@mzohren @deakjahn If you're unable to open the "android" folder even via File → Open, please file a new issue about that. This issue is specifically about trying to use the "Open for Editing in Android Studio" option that the Flutter plugin offers. I regularly open the "android" folder as its own project, using the core Android Studio UI for opening a project, and it consistently works for me. But if I instead try to use that "Open for Editing in Android Studio" option, I reproduce this issue: the open fails, and I see an exception with a stack trace like the one in the original report above. So the issue you're seeing doesn't always reproduce in the same situation where this issue does, which is a good reason to investigate them as separate issues. |
No, you're right, MicroProgramer wrote something else and I didn't realize. We all speak about the "Open for Editing" all right. |
opening the android module through the file menu is NOT the same. when you open the module without using the "tools...flutter...open for editing in android studio" , flutter does not update the generated android gradle file. i dont know im very newb and this problem adds alot of friction for me. like hours till i got it and extra 20-30 mins every new build, having to now edit my androids gradle files manually. |
@gigafunk It'd be much faster to delete that folder every time before you try to "open for editing"... |
I do not yet have a fix for this issue. This issue has also conflated into at least 2 issues in the comments above:
From looking at previous issues in the Flutter IJ plugin and talking with previous team members the root issue is around which version of the AS sources are pulled in for compilation versus the sources used at execution time. |
The issue is still exist in android studio jellyfish .... |
Same issue in Android Studio Jellyfish | 2023.3.1 |
…StudioAction This will resolve the issue flutter#7103
…StudioAction This will resolve the issue flutter#7103
Removed this action,"Open Android Module in Android Studio" with #7412, the required support that the Flutter IJ plugin used for this action was modified in Android Studio in such a way that we can no longer use the support. |
Surely, "we can no longer use the support", removing the feature and closing the issue is not the solution expected either from Android Studio or from Flutter or from Google. Is it? |
i just follow this video from youtube https://www.youtube.com/watch?v=-ZtjhsY7JYg , and this work |
@gustysetyono suggestion works once. On Android Studio(AS) restart the .idea directory is rebuilt. Exiting AS and restarting, then trying to open a file and the same crash is back. |
yes it works |
just be aware you will need to change the local.properties to update the version number manually if you do it this way |
Android Studio Jellyfish | 2023.3.1 Patch 1 |
Thanx. This worked for me! |
What happened
First execution at project creation is ok.
After It always fails with the following
Version information
Android Studio
Hedgehog | 2023.1.1
• Flutter pluginio.flutter 76.3.3
• Dart plugin231.9409
Error getting Flutter sdk information.
Exception
null
The text was updated successfully, but these errors were encountered: