Can't get the Android Emulator to run Corona Apps - Unfortunately, HelloWorld has stopped.

Hi,

When I try to run a Corona sample app on the Android emulator, it displays the message:

Unfortunately, HelloWorld has stopped.

I’m using Corona Simulator 2013.2100 (2013.12.7) to perform the ‘Build for Android’, the app runs fine in the Corona Simulator, just won’t run in the Android Emulator.

I’ve installed the 32bit & 64bit versions of Java JDK 7u51

I’m using the following ADT bundle: adt-bundle-windows-x86_64-20131030 

I upload the application using the following command:

adb install “C:\Users\ste\Documents\Corona Projects\Android Builds\HelloWorld.apk”

I’ve managed to obtain some log file information using the following command:

adb logcat -d > logcat.txt

The log file displays the following information:

I/ActivityManager( 1239): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.exactabacus.ste.HelloWorld/com.ansca.corona.CoronaActivity} from pid 1429

W/dalvikvm( 2795): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/ansca/corona/JavaToNativeShim;

W/dalvikvm( 2795): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/ansca/corona/CoronaEnvironment;

D/AndroidRuntime( 2795): Shutting down VM

W/dalvikvm( 2795): threadid=1: thread exiting with uncaught exception (group=0xb0d63b08)

E/AndroidRuntime( 2795): FATAL EXCEPTION: main

E/AndroidRuntime( 2795): Process: com.exactabacus.ste.HelloWorld, PID: 2795

E/AndroidRuntime( 2795): java.lang.UnsatisfiedLinkError: Couldn’t load lua from loader dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.exactabacus.ste.HelloWorld-1.apk”],nativeLibraryDirectories=[/data/app-lib/com.exactabacus.ste.HelloWorld-1, /system/lib]]]: findLibrary returned null

E/AndroidRuntime( 2795):  at java.lang.Runtime.loadLibrary(Runtime.java:358)

E/AndroidRuntime( 2795):  at java.lang.System.loadLibrary(System.java:526)

E/AndroidRuntime( 2795):  at com.ansca.corona.JavaToNativeShim.<clinit>(JavaToNativeShim.java:119)

E/AndroidRuntime( 2795):  at com.ansca.corona.CoronaEnvironment.setLuaErrorHandler(CoronaEnvironment.java:379)

E/AndroidRuntime( 2795):  at com.ansca.corona.CoronaEnvironment.<clinit>(CoronaEnvironment.java:41)

E/AndroidRuntime( 2795):  at com.ansca.corona.CoronaActivity.onCreate(CoronaActivity.java:115)

E/AndroidRuntime( 2795):  at android.app.Activity.performCreate(Activity.java:5243)

E/AndroidRuntime( 2795):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

E/AndroidRuntime( 2795):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)

E/AndroidRuntime( 2795):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)

E/AndroidRuntime( 2795):  at android.app.ActivityThread.access$700(ActivityThread.java:135)

E/AndroidRuntime( 2795):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)

E/AndroidRuntime( 2795):  at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 2795):  at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 2795):  at android.app.ActivityThread.main(ActivityThread.java:4998)

E/AndroidRuntime( 2795):  at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 2795):  at java.lang.reflect.Method.invoke(Method.java:515)

E/AndroidRuntime( 2795):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)

E/AndroidRuntime( 2795):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)

E/AndroidRuntime( 2795):  at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager( 1239):   Force finishing activity com.exactabacus.ste.HelloWorld/com.ansca.corona.CoronaActivity

I/WindowManager( 1239): Screenshot max retries 4 of Token{b14c5fe8 ActivityRecord{b1370250 u0 com.exactabacus.ste.HelloWorld/com.ansca.corona.CoronaActivity t26 f}} appWin=Window{b13683e8 u0 Starting com.exactabacus.ste.HelloWorld} drawState=4

W/WindowManager( 1239): Screenshot failure taking screenshot for (480x800) to layer 21055

W/ActivityManager( 1239): Activity pause timeout for ActivityRecord{b1370250 u0 com.exactabacus.ste.HelloWorld/com.ansca.corona.CoronaActivity t26 f}

W/EGL_emulation( 1429): eglSurfaceAttrib not implemented

I/Process ( 2795): Sending signal. PID: 2795 SIG: 9

W/AudioPolicyManagerBase(  913): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0

W/AudioPolicyManagerBase(  913): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0

W/AudioPolicyManagerBase(  913): getOutput() could not find output for stream 1, samplingRate 48000,format 1, channels 3, flags 4

E/AudioTrack( 1239): Could not get audio output for stream type 1

E/SoundPool( 1239): Error creating AudioTrack

I/ActivityManager( 1239): Process com.exactabacus.ste.HelloWorld (pid 2795) has died.

I’d appreciate it if anyone could advise what I’m doing wrong.

Thank you

Finally think I’ve figured it out, I created a new AVD using ARM v7a and enabled Host GPU, and it’s now working fine.

It doesn’t appear to work when using the speedier HAXM Atom x86 emulation :frowning:

Finally think I’ve figured it out, I created a new AVD using ARM v7a and enabled Host GPU, and it’s now working fine.

It doesn’t appear to work when using the speedier HAXM Atom x86 emulation :frowning: