Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting app on android emulator for meteor never finishes

Today I wanted to test how Meteor's android build worked. So I installed Meteor and created a test to-do app per their instructions. Then pr. instructions from here I installed the Java SDK, and confirmed I had the Android SDK from when I installed Visual Studio 2015.

Then came my first problem. When I tried to run meteor add-platform android from the command prompt. I got the error Cannot find module ‘is-property’, and quickly learned to fix this by cd'ing to the directory missing the module and running npm install is-property. A hat tip to this thread for the solution.

Okay, one more time: meteor add-platform android and this time with success. I then ran meteor run android, and sure enough, an emulator launched with my app. Or almost. Because the first message that greeted me was Application Error - The connection to the server was unsuccessful (http://localhost:12784) and the app crashed.

After searching around a bit, it seemed that because the emulator was so damn slow, the meteor script timed out and caused the crash. So I then tried installing Android Studio to use Android AVD manager. But now the emulator wouldn't even launch, and I got stock with the following:

enter image description here

Starting app on android emulator and then... nothing.

So I tried to uninstall all android sdks, android studio, and meteor.

Then I tried to

  1. Installing meteor again.
  2. Install only the Android SDK command line tools.
  3. Added the Android SDK to my environment variables.
  4. Ran the android.bat to make sure I installed almost all the newest tools and images plus the Intel x86 Emulator Accelerator (HAXM installer) List item
  5. I Then tried running the meteor run android command again, only to get stuck at starting app on android emulator as seen in the first picture.
  6. Let the Starting app on android emulator run for an hour plus to see if things were just slow.

I have also tried to follow advice from the following resources without help:

  • Android Emulator Hangs
  • Meteor with android having issue starting app on the device and emulator
  • Creating a new AVD- CPU/ABI field show 'No System images installed'
  • Unable to create Android Virtual Device

And btw, here is how my AVD config looks like

enter image description here

So what have I done wrong? Everything would not be a surprising answer. Jokes aside, what is it I need to do to get a proper running android emulator up for my meteor app on windows 10?

like image 598
MartinJH Avatar asked Dec 03 '25 02:12

MartinJH


1 Answers

I was getting exactly the same thing, but I finally figured out the problem.

I tried running the emulator from the command-line:

emulator -avd Android_Emulator

This actually gave me a useful error message:

emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM is not installed on this machine

This StackOverflow thread helped figure out how to install this: Intel X86 emulator accelerator (HAXM installer) VT/NX not enabled

And then it worked! Really really slow! But it worked.

like image 128
jeffrey_t_b Avatar answered Dec 04 '25 17:12

jeffrey_t_b



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!