When I launch an app to an Android emulator, I get the following two error messages, but the app works fine:
E/SurfaceSyncer( 6710): Failed to find sync for id=0
W/Parcel ( 6710): Expecting binder but got null!
Environment: Windows 11, AMD Ryzen 6000
Flutter doctor output:
[✓] Flutter (Channel stable, 3.3.6, on Microsoft Windows [Version 10.0.22621.674], locale en-AU)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Chrome - develop for the web
[✗] Visual Studio - develop for Windows
✗ Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.72.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability
No errors occur if I instead launch to Chrome.
Any ideas?
Have you installed Visual Studio? This contains the 'Desktop development with C++' which flutter seems to require. (Visual Studio != Visual Studio Code)
Related
When deploying Firebase web hosting, instead of a list of custom objects being created from a custom class, I get a list of Instance of 'minified:kz' and the runtimeType is listed as minified:q<minified:kz>
The list of objects is being created from AlgoliaQuerySnapshot (using ^1.1.1).
It seemed to have been working fine, but just yesterday I started getting this behavior. And everything works perfectly the Android Studio debug mode deploy but not on web hosting release deploy.
Would anyone know why this might be taking place or what minified:kz means?
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.19044.1706], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.9)
[√] Android Studio (version 4.1)
[√] VS Code (version 1.67.2)
[√] Connected device (3 available)
[√] HTTP Host Availability
firebase -V 11.0.1
I just updated my flutter folder from 2.15 to 3.0. My app runs fine but there's a big problem: when I do CTRL+S, instead of reload my current page to see the changes, it's restarting my whole app, which is extremely annoying. This didn't happen until the upgrade so thought it was a problem of Flutter 3.0. But I downgraded to the version 2.15 and it keeps restarting instead of reloading.
Here's my "flutter doctor":
[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Versión 10.0.19041.264], locale es-AR)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2020.3)
[√] Android Studio (version 2021.2)
[√] VS Code (version 1.67.1)
[√] Connected device (3 available)
[√] HTTP Host Availability
I also tried running "flutter clean" and "flutter pub get" but it's the same. It says "Performing hot reload" but it actually performs a full restart. I can't work anymore like this.
When I create the new file of the flutter project the first time it's run smoothly and no issues occur, when I start these projects again after some period of time, the Gradle build is stuck and so much ram usage by the OpenJDK binary platform. After some time pc crashed.
Task manager screenshot
Here is the flutter doctor's output
[✓] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.22000.556], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[✓] Chrome - develop for the web
[✗] Visual Studio - develop for Windows
✗ Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[✓] Android Studio (version 2021.1)
[✓] IntelliJ IDEA Community Edition (version 2021.3)
[✓] VS Code (version 1.66.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability
So please tell me how do I fix it?
I replaced flutter folder with an older version then Visual Studio Code stopped showing available devices ("No device" not clickable) when I click to run my app so I have to manually start the emulator on Android Studio (AVD) for Visual Studio Code to connect. Before the downgrade everything worked fine and I didn't have to open android studio for Visual Studio Code to connect to emulators.
flutter doctor :
C:\Users\Workstudio>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.19042.928], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Android Studio (version 3.5)
[√] VS Code, 32-bit edition (version 1.57.1)
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
Things I've tried:
Reinstall HAXM.
adb server-kill & adb server-start
checked environmental variables(paths & Android home).
Updating Android SDK.
When I run flutter run -d chrome, it opens a blank window.
flutter doctor:
[√] Flutter (Channel master, 1.19.0-2.0.pre.73, on Microsoft Windows [Version 10.0.17763.1217], locale ru-RU)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.
[√] Chrome - develop for the web
[√] Android Studio (version 3.6)
[!] IntelliJ IDEA Community Edition (version 2019.2)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.45.1)
[√] Connected device (2 available)
Dart version:
What I should do?