Failure to Install .apk on Android Emulator

I’m trying to install the .apk I built with Corona SDK on my Android Emulator, but I can’t seem to actually install. I keep getting this error, which doesn’t really tell me what’s wrong.

[code]Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\Kyle>cd C:\Program Files (x86)\Android\android-sdk\tools

C:\Program Files (x86)\Android\android-sdk\tools>adb install Temporary.apk
473 KB/s (8325725 bytes in 17.171s)
pkg: /data/local/tmp/Temporary.apk
Failure [INSTALL_FAILED_INVALID_APK][/code]

When I built for Android, here’s what I put:

Application Name: Temporary Version Code: 1 Version Name: 0.1 Package: com.lKinx.Temporary Project Path: C:\Users\Kyle\Documents\My Code\Corona SDK\Temporary Target OS Version: Android 2.2 Keystore: (Default for Corona SDK Trial Users) Key Alias: androiddebugkey Save to Folder: C:\Users\Kyle\Desktop

Any ideas as to why this happened? [import]uid: 103624 topic_id: 21843 reply_id: 321843[/import]

When you say ‘emulator’ does that mean android device? If so my first check would be to make sure the device your using has an ARMv7 processor. [import]uid: 75779 topic_id: 21843 reply_id: 86799[/import]

Nope, not a device.

I mean the Android Emulator that comes with the Android SDK. [import]uid: 103624 topic_id: 21843 reply_id: 86805[/import]

If I remember correctly, the android emulator is arm7 for Android version 3 SDK and higher.

If you are using a older Android SDK (ie 2.2) it will not run. Upgrade to the latest SDK. [import]uid: 9070 topic_id: 21843 reply_id: 86814[/import]

Thank you so much! I switched to Android 3.0 and it worked! :smiley:

When I try and play it in the Android Emulator, it just says it stops unexpectedly. Is there a place where I can check what went wrong? [import]uid: 103624 topic_id: 21843 reply_id: 86875[/import]

I haven’t used the emulator for debugging as I have several real devices. Get the ‘logcat’ app to see what is being thrown in the system logs. [import]uid: 9070 topic_id: 21843 reply_id: 86878[/import]

Here’s a snippet from the logcat.

[code]I/ActivityManager( 65): Starting: Intent { act=android.intent.action.MAIN cat=
[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.lKinx.Temporary/com.an
sca.corona.CoronaActivity bnds=[75,25][161,99] } from pid 140
I/ActivityManager( 65): Start proc com.lKinx.Temporary for activity com.lKinx.
Temporary/com.ansca.corona.CoronaActivity: pid=284 uid=10035 gids={3003}
I/ActivityThread( 284): Pub com.lKinx.Temporary.files: com.ansca.corona.FileCon
tentProvider
I/ActivityThread( 284): Pub com.lKinx.Temporary.ppy_cache: com.papaya.social.PP
YSocialContentProvider
W/dalvikvm( 284): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initi
alizing Lcom/ansca/corona/CoronaActivity;
W/dalvikvm( 284): Class init failed in newInstance call (Lcom/ansca/corona/Coro
naActivity;)
D/AndroidRuntime( 284): Shutting down VM
W/dalvikvm( 284): threadid=1: thread exiting with uncaught exception (group=0x4
0014760)
E/AndroidRuntime( 284): FATAL EXCEPTION: main
E/AndroidRuntime( 284): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 284): at java.lang.Class.newInstanceImpl(Native Method
)
E/AndroidRuntime( 284): at java.lang.Class.newInstance(Class.java:1424)
E/AndroidRuntime( 284): at android.app.Instrumentation.newActivity(Instr
umentation.java:1022)
E/AndroidRuntime( 284): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:1651)
E/AndroidRuntime( 284): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:1752)
E/AndroidRuntime( 284): at android.app.ActivityThread.access$1500(Activi
tyThread.java:123)
E/AndroidRuntime( 284): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:993)
E/AndroidRuntime( 284): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 284): at android.os.Looper.loop(Looper.java:126)
E/AndroidRuntime( 284): at android.app.ActivityThread.main(ActivityThrea
d.java:3997)
E/AndroidRuntime( 284): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 284): at java.lang.reflect.Method.invoke(Method.java:4
91)
E/AndroidRuntime( 284): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:841)
E/AndroidRuntime( 284): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:599)
E/AndroidRuntime( 284): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 284): Caused by: java.lang.UnsatisfiedLinkError: Couldn’t loa
d openal: findLibrary returned null
E/AndroidRuntime( 284): at java.lang.Runtime.loadLibrary(Runtime.java:42
5)
E/AndroidRuntime( 284): at java.lang.System.loadLibrary(System.java:554)

E/AndroidRuntime( 284): at com.ansca.corona.CoronaActivity.(Coro
naActivity.java:70)
E/AndroidRuntime( 284): … 15 more
W/ActivityManager( 65): Force finishing activity com.lKinx.Temporary/com.ans
ca.corona.CoronaActivity
D/dalvikvm( 65): GC_FOR_ALLOC freed 409K, 20% free 9229K/11463K, paused 78ms
W/ActivityManager( 65): Activity pause timeout for ActivityRecord{407f9778 com
.lKinx.Temporary/com.ansca.corona.CoronaActivity}[/code] [import]uid: 103624 topic_id: 21843 reply_id: 86996[/import]

Set the filter in logcat to corona.

Anything the corona subsystem (including from your app) will be displayed.

Then it will be time to engage the corona support staff.
Nothing here jumps out at me other than these two line…

W/dalvikvm( 284): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initi
alizing Lcom/ansca/corona/CoronaActivity;
W/dalvikvm( 284): Class init failed in newInstance call (Lcom/ansca/corona/Coro
naActivity;)
Good luck! [import]uid: 9070 topic_id: 21843 reply_id: 87334[/import]

lKinx did you ever get this figured out? I am experiencing a similar issue… [import]uid: 10280 topic_id: 21843 reply_id: 119576[/import]

lKinx did you ever get this figured out? I am experiencing a similar issue… [import]uid: 10280 topic_id: 21843 reply_id: 119576[/import]