-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
dependency: dartDart team may need to help usDart team may need to help usplatform-webWeb applications specificallyWeb applications specificallyt: hot reloadReloading code during "flutter run"Reloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
I created a fresh Flutter project using android studio.
I then ran the following command:
$ flutter channel beta
$ flutter upgrade --force
$ flutter config --enable-web
Note that I had to use --force because otherwise I get this error:
Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended
that you stash them via "git stash" or else commit the changes to a local branch. If it is okay to remove local changes, then
re-run this command with --force.
I'm not sure why as this is a fresh project.
I then ran:
$ flutter create .
I then tried to run the project:
$ flutter run -d chrome
But I just get a blank chrome browser that loads up and the console hangs on Attempting to connect to browser instance...
flutter doctor -v gives me:
[√] Flutter (Channel beta, v1.12.13+hotfix.6, on Microsoft Windows [Version 10.0.17763.914], locale en-GB)
• Flutter version 1.12.13+hotfix.6 at C:\flutter
• Framework revision 18cd7a3601 (31 hours ago), 2019-12-11 06:35:39 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\yahya\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_SDK_ROOT = C:\Users\yahya\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.36.1)
• VS Code at C:\Users\yahya\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.2.0
[√] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 78.0.3904.108
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found!
Thanks for the help :-)
RomjanHossain
Metadata
Metadata
Assignees
Labels
dependency: dartDart team may need to help usDart team may need to help usplatform-webWeb applications specificallyWeb applications specificallyt: hot reloadReloading code during "flutter run"Reloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.