Relative Content

Tag Archive for flutterandroid-studio

Android Studio is not retaining Flutter and Dart SDK Path on Mac (Sonoma 14.5)

I am using Android Studio for flutter development on Mac OS. The problem I am facing is that the Android Studio is not retaining the Flutter and Dart SDK path. When I set the path and run the application it works well but when I switch come back to the Android Studio, it cleans the saved path and ask to set again (Screenshot attached below).
. It also stops the running flutter app. When I click on “Enable Dart Support” it again sets the flutter and Dart sdk path.

android studio console errror

E/emuglGLESv2_enc(12063): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502

Debugging issue with Flutter and Android Studio

I have Android Studio Jellyfish | 2023.3.1 Patch 1.
A completely new Flutter application, the default one, with no changes at all.
The debugging appears as below.
There is this pink color to the white area of the editor
As you see at the top, the main.dart file is opened twice (by Android Studio)
Breakpoint don’t appear and the app stops where the breakpoint was in the normal main.dart
9 errors appears on the right and in the panel below.
Aside from that, the application executes correctly.
I execute “invalidate caches”. I emptied the cache directory.
This behavior appears the last week in every application that I have (in 2 different PCs)
What’s wrong?? How can I fix this?

Error running flutter app on emulator after first run! Does not run after first run

When I run my flutter app on emulator the first time it runs smoothly but from the second time it shows this error every time.
Here is the error: Launching lib/main.dart on sdk gphone64 x86 64 in debug mode…
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
I/ample.food_fete( 6664): Compiler allocated 4533KB to compile void android.view.ViewRootImpl.performTraversals()
Connecting to VM Service at ws://127.0.0.1:41429/ZIJH4M0Maio=/ws
9
E/emuglGLESv2_enc( 6664): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2183 GL error 0x502
W/Parcel ( 6664): Expecting binder but got null!