0

Why is my flutter unable to display the widget that I wrote at the beginning of the F5 debug flutter or the flutter run in command line. My Flutter shows a previous Widget and also a previous error even though I deleted my code. I always have to hot reload or flutter clean to get a Widget or data that matches what I wrote.

Note: Before this happens. My project got a lot of errors due to flutter upgradeI tried trying for days to justify it to replace the versions but the exact can't be solved. So I decided to reinstall my flutter. Please help me. I was frustrated enough.

$ flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.17763.914], locale en-US)
    • Flutter version 1.12.13+hotfix.5 at D:\FlutterSDK\flutter
    • Framework revision 27321ebbad (7 days ago), 2019-12-10 18:15:01 -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\ASUS\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: D:\Rts\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at D:\AndroidSDK\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)

[√] Connected device (1 available)
    • SM A205F • RR8M512EJ8X • android-arm64 • Android 9 (API 28)

• No issues found!

Thank you

13
  • what is a complete command line? just flutter run? what if you add -v? Commented Dec 18, 2019 at 8:52
  • @pskink too long if i put here. but my code is going according to plan even though it takes a lot of time. can you explain why this happened? Commented Dec 18, 2019 at 9:28
  • what is too long? did you run flutter run -v? if so, what are the last, say 20, lines of log? Commented Dec 18, 2019 at 9:29
  • @pskink here the link to see codeshare.io/2Kq9w8 Commented Dec 18, 2019 at 9:40
  • 2
    These commands might need for you Commented Jul 18, 2020 at 16:02

1 Answer 1

1

Try flutter clean, followed by flutter channel stable. This will reset the build directory, and ensure you're on the stable branch of Flutter. Try flutter run -v and report the output, please.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.