GrayBullet / generator-graybullet-cordova

Webapp and AngularJS yeoman generator for Apache Cordova.
MIT License
10 stars 4 forks source link

android emulator just hangs #22

Closed ralyodio closed 9 years ago

ralyodio commented 9 years ago

I'm not sure why this is happening (mac)

I installed android-sdk with brew, everything seems to work fine, I installed API (19) and created a Nexus 6 device (not sure I did this right).

I've tried several combinations, but the app never loads in android when I run grunt emulate. It works fine in browser and ios emulator, but android starts, but I just get a black screen. Waiting like 30 minutes one time just to see.

masakura commented 9 years ago

Since the Android emulator is problematic, I want you to try the following.

Please run the grunt emulate, after start the android emulator.

$ emulator -avd your_avd_name &
... after emulator started. (Shown android lock screen)
$ grunt emulate
ralyodio commented 9 years ago

That just starts two of them, both just give me a black screen. screenshot 2015-02-01 11 23 12

masakura commented 9 years ago

It seems to boot failed android emulator.

$ emulator -avd avd1

In my environment, run emulator -avd avd1 and to wait for about 30 seconds, Android lock screen is displayed.

If the lock screen does not appear in the order of a few minutes, it becomes of Android Emulator problem.

If the lock screen displayed, and black screen with grunt emulate, I want you to confirm whether cordova to work.

$ cordova create project1
$ cd project1
$ cordova platform add android
$ emulator -avd your_avd_name
... wait lock screen shown
$ cordova emulate
ralyodio commented 9 years ago

I tried creating an avd like yours, can you tell me what settings you are using?

screenshot 2015-02-01 23 47 18

I still just get a black screen just by running the emulator w/o going via cordova.

masakura commented 9 years ago

armeavi-v7a ABI is very slow! You may install the Intel HAXM Accelerator, and use the x86 ABI.

But it boot a slow. it works. About 5 minutes to wait for the lock screen is displayed.

$ android create avd -n avd442 -t android-19 -b armeabi-v7a -d 'Nexus 7'
$ emulator -avd avd442
  1. Start ANDROID boot animation.
  2. Wait about 5 minutes.
  3. Display android lock screen.

I'm sorry, I think I English is not transmitted well the poor. This comment was translated Google Translator from Japanese. You had better refer to the place of the other.

masakura commented 9 years ago

@chovy This Issue is closed. Because, it is not a problem of generator-graybullet-cordova. If I am wrong, please reopen.

I hope that this problem is resolved quickly.