-
Notifications
You must be signed in to change notification settings - Fork 315
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
(When) should I expect the "Open for Editing in Android Studio" option to show in Android Studio? #6416
Comments
My guess is that project is based on an old Flutter template. It looks like it is missing the Android module. If I'm right then you can fix it using the Project Structure dialog. Use Let us know if that helps. |
Hey @stevemessick it looks like you're correct, there's just the one entry at the top level, the I've tried 3 options from that project structure screen:
Is there some documentation around that covers the nuances of adding/importing/configuring modules to existing Flutter projects like this? |
This comment has a screen shot showing what to do. I believe it corresponds to your second option. It is creating an Android module that is a dependent of your project. Android Studio became very picky about when their menu items and tool windows would be active, so now we have to have an Android module in every Flutter project that targets Android. Projects created using Flutter tools automatically create one. |
I created an issue to (hopefully) fix the root cause of this problem. @msbit are you able to open the file in Android Studio now? |
Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll reopen the case if you do. Thanks for your contribution! |
Steps to Reproduce
Going through https://codelabs.developers.google.com/codelabs/admob-inline-ads-in-flutter, at step 8, I am instructed to:
This option isn't showing up, so I'm wondering:
The tutorial doesn't specifically note that it's using Android Studio, but the screenshots up to that point appear to be AS, and the
Pub get
command appears as expected from the Flutter plugin, so I'd suggest that's what the author intended.Version info
The text was updated successfully, but these errors were encountered: