Flutter not working with android emulator

2,032 views
Skip to first unread message

acryst...@gmail.com

unread,
Aug 7, 2017, 4:21:42 PM8/7/17
to Flutter Dev
I was trying to run my flutter app and the output seemed to be going fine,

Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...                                6.8s
Resolving dependencies...                            20.5s
Running 'gradlew assembleDebug'...                   32.1s
Built build/app/outputs/apk/app-debug.apk (21.2MB).
Installing build/app/outputs/apk/app.apk...           8.7s

until I got these errors, which I didn't get when linking it to a physical android phone.

E/flutter ( 6995): [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(161)] Could not wrap onscreen surface.
Syncing files to device Android SDK built for x86...
E
/flutter ( 6995): [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(161)] Could not wrap onscreen surface.

I was wondering if any of you had ideas as to why this is happening. Should I choose a different emulator (I'm using Pixel API 25 running Nougat), or is there something I should configure in flutter to work properly on emulators... or is it something else like a glitch in flutter's code? Help would be appreciated.

Mikkel Ravn

unread,
Aug 8, 2017, 3:45:55 AM8/8/17
to acryst...@gmail.com, Flutter Dev
Thanks for reporting this. The issue was first reported and then fixed some 5-6 days ago (see #11484). But the fix has not made it into the alpha branch yet. You can switch to the master channel, or check out an earlier version of the alpha branch:

flutter channel master or
git checkout d4beaf54f03f01710e46c96b6273d09c7f044d0a

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mikkel Nygaard Ravn
Software Engineer

acryst...@gmail.com

unread,
Aug 8, 2017, 10:33:27 PM8/8/17
to Flutter Dev, acryst...@gmail.com
 Thanks a lot! I ran the command 'flutter channel master', and then when I did 'flutter run' it worked perfectly.
Reply all
Reply to author
Forward
0 new messages