-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Android Studio - generate sample content menu is empty #31916
Comments
Hi - I have the same problem. I am following a course from London App Brewery. |
It appears sample content is not available yet if you are on the stable channel for Flutter SDK. Gotta be on beta or dev channel to receive this feature, or wait for the next stable release. |
Any work arounds? |
Apparently not, the code which supports this feature is not yet on the stable channel. As I mentioned above, one option is switching to the beta channel, however this could lead to other unexpected surprises. |
Same thing here... empty dropdown, wondering if it is yesterday's update that has issues |
I have the same issue. I am using macOS Mojave 10.14.4. I tried both latest stable build and beta build which was published as a hotfix on 8/5/2019. And unable to see this samples menu options. |
@vvinogradsky what operative system do you have? I have just intalled the update and nothing changed for me... |
I am on Windows 7. |
Try running |
I should have mentioned - the latest update gave me a bit of a trouble. The updater went into a loop complaining about a locked file. I closed Android Studio, tried restarting, but apparently a dart.exe process got stuck, so I had to kill it via Task Manager. After that I was able to restart Android Studio and then it went through upgrade steps start to finish. This happened on both of my machines, so I doubt that was a random glitch. Perhaps you are not seeing the menu because your update also got stuck somewhere? Definitely try |
I was certain that yesterday the sample content worked but not today, with no upgrades in between. So I tested and I found that if I created a new Flutter project when the full IDE was on screen (not just the Welcome to Android Studio) the options did appear, while when creating it thru the Welcome screen they did not. Until I found this, the sample content did not appear for a full day. It seems something gets refreshed when the IDE is fully started but does not when just the Welcome screen is shown. |
I have this problem on Win 7 with latest stable release. Doesn't matter if I go from full ide or welcome screen. Why put it on the menu (without comment or notation) if the underlying code that's required is not there? |
I just recently updated to:
|
Had the error on Mac,
|
Reloading doesn't fix it for me on Win 7. Here's Doctor output. Also, when I ran the AS update check it updated to a new build (even though I just installed it a week ago). [√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 6.1.7601], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [√] Android Studio (version 3.4) [!] Connected device ! Doctor found issues in 1 category. |
guys i had the same problem in 1.5.4 hotfix stable 2... i installed the material theme ui from the plugins and now it looks like i almost resolved the problem i didnt find out this problem to be related to stable version of flutter |
Updated Android studio ,changed channels from stable to dev,beta and then upgraded flutter but |
I faced the same issue, I tried downloading flutter SDK again, but the same error. Finally, it got resolved when I reinstalled the flutter and dart plugins in android studio. |
This solve my problem. thanks |
i have a same problem .There is installed flutter and dart plugins in android studio but when i check in cmd as flutter doctor i found: |
I was also having a same issue. I've reinstalled both the SDK and Android Studio plugins for Flutter and Dart and the sample content menu showed up. I'm not sure which one (reinstalling plugins or SDK) fixed it for me. OS: Windows 10 |
I have solved like "ottod" said, which means to create the new flutter project from an already opened ide code editor through "File / New / New Flutter project" and not through the initial welcome screen. |
I believe this should have been addressed by the most recent (M36) release of the Flutter IntelliJ plugin. For people that are still experiencing this, I'd check to see if there are new updates to the plugin version you have installed. |
Oh look, it's fixed in today's update! (I checked it) Now adb.exe crashes and prevents me from running my project. :( |
Did you update Android SDK in Android Studio by any chance? This is a new issue that's not related to the Flutter plugin. Check #33938 to see if it's identical to your issue by any chance. |
Followed ottod's advice, create new project inside the IDE, and it works. Thanks to ottod |
I just had this problem today. My version is 1.5.4-hotfix.2. flutter doctor (no issues found), flutter upgrade, created project inside ide and not in the welcome screen, all of these didn't work for me. The last thing i tried: went to settings -> build, execution, deployment -> build tools -> gradle and unchecked Offline work. Solved! |
Thanks for that. My "Offline work" was unchecked when I successfully
created the project in the IDE.
Kind Regards,
Jan Laubscher <http://www.linkedin.com/in/laubscherjan> Pr Eng MBA
Systems Development & Support C.C.
Suppliers of KeyScore <http://www.keyscore.co.za/> Performance Measurement
Software
Office: 011 803 4202
Fax: 086 559 2348
Mobile 082 445 2914
e-mail: jan@sysdev.co.za
Sysdev House, 3 Eike Lane, Woodmead, South Africa
P.O. Box 254, Rivonia, 2128, South Africa
Website address: http://www.sysdev.co.za
…On Sat, 15 Jun 2019 at 16:00, zkyll ***@***.***> wrote:
I just had this problem today. My version is 1.5.4-hotfix.2. flutter
doctor (no issues found), flutter upgrade, created project inside ide and
not in the welcome screen, all of these didn't work for me.
The last thing i tried: went to settings -> build, execution, deployment
-> build tools -> gradle and unchecked Offline work. Solved!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#31916?email_source=notifications&email_token=ACJNTNWTYRZT6EFPUBS2BMTP2TYWJA5CNFSM4HJUXJW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXYYXLA#issuecomment-502369196>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACJNTNSLJPEOJPY743ANFFDP2TYWJANCNFSM4HJUXJWQ>
.
|
I was also in the problem of generating sample context, so what I did was simply updated my plugin and restart and boom it appears. And if it also not working then check your SDK and version of flutter SDK and android studio. Jai Hind |
I was able to fix this issue locally by taking the following steps:
|
This works |
We've since removed the option from the project creation dialog - people should generally start new projects with the ~4 main templates from flutter create. The samples are good for exploring specific snippets of code - you can still create them from the individual package:flutter libraries (material/scaffold.dart, ...). |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I am having some weird issues with Android Studio on one of my development machines (works fine on the other two). The particular issue that I am having is that none of predefined sample applications show up in the Sample Application drop-down when I choose to start a new project:
Flutter Doctor doesn't find any issues. Not sure if I should try and re-install?
The text was updated successfully, but these errors were encountered: