Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter fresh installation flutter run stuck

Tags:

flutter

I am new to flutter i have fresh installtion.

All as in docs.

As after fresh installation i was fine worked but when i want to work on another day flutter run i stuck.... I do not know why. I only make boilerplate app. I xcode when i build app is opening in simulator but stating as flutter run not working. I even try to wait 20 min with this flutter run but still stuck

flutter doctor -v

[✓] Flutter (Channel master, v1.6.4-pre.14, on Mac OS X 10.14.5 18F132, locale
    pl-PL)
    • Flutter version 1.6.4-pre.14 at /Users/db/Desktop/Mobile/flutter
    • Framework revision 81c38b22cb (32 hours ago), 2019-05-24 22:51:02 -0400
    • Engine revision 8dc3a4cde2
    • Dart version 2.3.2 (build 2.3.2-dev.0.0 e3edfd36b2)


[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/db/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • CocoaPods version 1.7.0

[✓] iOS tools - develop for iOS devices
    • ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 35.3.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1343-b01)

[✓] Connected device (1 available)
    • iPhone 8 • F35EFD3E-C637-427A-8405-30EDF202939A • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

• No issues found!

flutter run -v stuck at this stage.

+file:///Users/db/Desktop/Mobile/flutter/packages/flutter/lib/widgets.d
art
[        ] -> +file:///Users/db/Desktop/Flutter/iamsmart/lib/main.dart
[        ] -> 35191e22-84d6-4fab-abef-178ae9e4c665 build/app.dill 0
[ +319 ms] Building bundle
[        ] Writing asset files to build/flutter_assets
[  +55 ms] Wrote build/flutter_assets
[  +12 ms] Using legacy Xcode build system.
[  +27 ms] executing: [/Users/db/Desktop/Flutter/iamsmart/ios/]
/usr/bin/xcodebuild -list
like image 932
Exc Avatar asked May 26 '19 11:05

Exc


People also ask

How do you solve if flutter run stuck at installing APK?

To do this, go into your device or emulator: Settings > Developer options , Change the buffer size to a higher number. Then run flutter run -v again.

How do you run the flutter app in release?

To compile in release mode, we just need to add the --release flag to the flutter run command and have a physical device connected. Although we can do so, we typically do not use the flutter run command with the --release flag.


3 Answers

Run this command

flutter clean

And then again

flutter run
like image 80
Lokesh Lalwani Avatar answered Nov 15 '22 05:11

Lokesh Lalwani


  1. Try to upgrade your flutter version to v 1.7.8 by running this command this needs internet connection
    flutter upgrade
  1. Try this command
    flutter clean
  1. Change your flutter channel to stable
    flutter channel stable
  1. Check your internet connection because sometimes it prevents me from running my app
like image 36
Abdelrahman M. Elmarakby Avatar answered Nov 15 '22 05:11

Abdelrahman M. Elmarakby


Try to switch your flutter channel master to stable channel. After switching the channels you should call flutter upgrade to download the Flutter SDK and dependent packages.

Do this steps in the terminal

flutter channel stable

flutter upgrade

try to run your code after this steps.

like image 42
Babken Avatar answered Nov 15 '22 05:11

Babken