Flutter start fails on emulator Nexus 6P x86_64

439 views
Skip to first unread message

Shakeel Mahate

unread,
Feb 6, 2016, 8:05:54 PM2/6/16
to flutt...@googlegroups.com
Hello

I have built the shopping_app from the tutorial and have it running on my attached Nexus 6 device. However when I try to start the flutter app on an emulated Nexus 6P, I see the following error in the Android Monitor.


02-06 19:51:41.141 1543-1756/system_process W/ActivityManager: Invalid packageName: org.domokit.sky.shell
02-06 19:51:41.141 15208-15208/? D/AndroidRuntime: Shutting down VM
02-06 19:51:47.216 15305-15305/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
02-06 19:51:47.217 15305-15305/? D/AndroidRuntime: CheckJNI is ON
02-06 19:51:47.233 15305-15305/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
02-06 19:51:47.252 15305-15305/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-06 19:51:47.252 15305-15305/? E/android.os.Debug: failed to load memtrack module: -2
02-06 19:51:47.253 15305-15305/? I/Radio-JNI: register_android_hardware_Radio DONE
02-06 19:51:47.273 15305-15305/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
02-06 19:51:47.283 15305-15305/? I/art: System.exit called, status: 1
02-06 19:51:47.283 15305-15305/? I/AndroidRuntime: VM exiting with result code 1.
02-06 19:51:48.614 15336-15336/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
02-06 19:51:48.616 15336-15336/? D/AndroidRuntime: CheckJNI is ON
02-06 19:51:48.627 15336-15336/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
02-06 19:51:48.644 15336-15336/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-06 19:51:48.644 15336-15336/? E/android.os.Debug: failed to load memtrack module: -2
02-06 19:51:48.645 15336-15336/? I/Radio-JNI: register_android_hardware_Radio DONE
02-06 19:51:48.654 15336-15336/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
02-06 19:51:48.675 3418-3429/com.android.defcontainer D/DefContainer: Copying /data/local/tmp/SkyShell.apk to base.apk
02-06 19:51:48.686 1543-1567/system_process W/NativeHelper: Failure copying native libraries [errorCode=-113]
02-06 19:51:48.686 1543-1567/system_process I/art: Starting a blocking GC Explicit
02-06 19:51:48.699 1543-1567/system_process I/art: Explicit concurrent mark sweep GC freed 8970(398KB) AllocSpace objects, 0(0B) LOS objects, 32% free, 8MB/12MB, paused 333us total 11.839ms
02-06 19:51:48.706 15336-15336/? I/art: System.exit called, status: 1
02-06 19:51:48.706 15336-15336/? I/AndroidRuntime: VM exiting with result code 1.
02-06 19:51:49.094 15357-15357/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
02-06 19:51:49.095 15357-15357/? D/AndroidRuntime: CheckJNI is ON
02-06 19:51:49.114 15357-15357/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
02-06 19:51:49.140 15357-15357/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-06 19:51:49.140 15357-15357/? E/android.os.Debug: failed to load memtrack module: -2
02-06 19:51:49.141 15357-15357/? I/Radio-JNI: register_android_hardware_Radio DONE
02-06 19:51:49.153 15357-15357/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am
02-06 19:51:49.157 1543-2140/system_process W/ActivityManager: Invalid packageName: org.domokit.sky.shell
02-06 19:51:49.158 15357-15357/? D/AndroidRuntime: Shutting down VM
02-06 19:51:49.177 15357-15371/? E/art: Thread attaching while runtime is shutting down: Binder_2
02-06 19:51:49.177 15357-15371/? I/AndroidRuntime: NOTE: attach of thread 'Binder_2' failed
02-06 19:51:50.649 15391-15391/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
02-06 19:51:50.680 15391-15391/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-06 19:51:50.680 15391-15391/? E/android.os.Debug: failed to load memtrack module: -2
02-06 19:51:50.681 15391-15391/? I/Radio-JNI: register_android_hardware_Radio DONE
02-06 19:51:50.692 15391-15391/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am
02-06 19:51:50.697 1543-1554/system_process I/ActivityManager: START u0 {act=android.intent.action.RUN dat=/data/local/tmp/dev.flx flg=0x30000000 cmp=org.domokit.sky.shell/.SkyActivity (has extras)} from uid 0 on display 0
02-06 19:51:50.702 15391-15391/? D/AndroidRuntime: Shutting down VM
02-06 19:51:50.711 15391-15400/? E/art: Thread attaching while runtime is shutting down: Binder_1
02-06 19:51:50.711 15391-15400/? I/AndroidRuntime: NOTE: attach of thread 'Binder_1' failed

The command line does not display any error messages

Any pointers on what I need to do in order to get it running on an emulator. I can always continue using the device, but I want to showcase my app to an audience and having it run on the emulator would be a better option for showing it to them.

I am on MacOSX with Android Studio 2.0 Beta 2.

The emulator is Nexus 6P API 23 Android 6.0 x86_64 (qemu-system-x86-64). 

The emulator does not have Chrome browser, it is the default Android image.

Obviously missing something obvious over here, so any help would be appreciated.

I love writing in flutter, much better developer experience than writing in Java :-)

Shakeel

Seth Ladd

unread,
Feb 8, 2016, 11:06:46 AM2/8/16
to Shakeel Mahate, Flutter Dev
Thanks for the report! Android Emulator support isn't working yet. Here's the issue we're tracking: https://github.com/flutter/flutter/issues/284

Does it work on a real device for you?

--
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...@googlegroups.com.
To post to this group, send email to flutt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/CAAO_6mdprfO%3Dzgoxh%2BNjOcjDfvO%2BS5-nOyk2ew-Z8Ygy67Bqsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Shakeel Mahate

unread,
Feb 8, 2016, 12:03:53 PM2/8/16
to Seth Ladd, Flutter Dev

Yes, it works.

Seth Ladd

unread,
Feb 8, 2016, 12:10:59 PM2/8/16
to Shakeel Mahate, Flutter Dev


On Mon, Feb 8, 2016 at 9:03 AM, Shakeel Mahate <shakeel...@gmail.com> wrote:

Yes, it works.


Great!

Keep the feedback coming.

Shakeel Mahate

unread,
Feb 8, 2016, 12:17:09 PM2/8/16
to Flutter Dev
Looks like both of us are using the auto reply function of Inbox/GMail :-)

Eric Seidel

unread,
Feb 23, 2016, 5:00:33 PM2/23/16
to Shakeel Mahate, Flutter Dev
An update: The Android emulator is known to work. However running in
x68 Android does not currently work out of the box (requires building
your own flutter engine). We have (at least one) bug open for this:
https://github.com/flutter/flutter/issues/490
> https://groups.google.com/d/msgid/flutter-dev/9de0162d-9395-47a7-b2bb-beecbc11241e%40googlegroups.com.

Shakeel Mahate

unread,
Feb 28, 2016, 5:03:00 PM2/28/16
to Eric Seidel, Flutter Dev
Hi Eric

The https://github.com/flutter/engine/blob/master/README.md does not have any instructions on how to build flutter engine. A bit of digging I found this file https://github.com/flutter/engine/blob/master/build/toolchain/android/BUILD.gn 

Can you point me to some instructions on how to build flutter engine for Android x86 emulator?

Thanks

Shakeel

Eric Seidel

unread,
Feb 28, 2016, 5:21:04 PM2/28/16
to Shakeel Mahate, Flutter Dev
https://github.com/flutter/engine/blob/master/CONTRIBUTING.md is where the build instructions are.  Not sure if that's the proper GitHub location or not. :)

It looks like:

./sky/tools/gn --android --simulator
ninja -C out/android_sim_Release

Might actually already do the right thing, at least from my reading of our gn wrapper script:

Once you figure out what works, please write it down in https://github.com/flutter/flutter/issues/490.  I hope to wire it up on our bots and automatically distribute x86 android engine builds as part of our normal tooling in the near future.

Shakeel Mahate

unread,
Feb 28, 2016, 6:15:37 PM2/28/16
to Eric Seidel, Flutter Dev
Thanks
Reply all
Reply to author
Forward
0 new messages