Select to view content in your preferred language

My Application no longer starts after switch to SDK 10.1.1

4519
14
Jump to solution
01-17-2013 10:05 AM
JeffAli
Emerging Contributor
My application started fine and displayed my map when I was using 2.0, but after the switch to 10.1.1 it no longer starts. Below is the error log put out by log cat:


01-17 14:51:07.608: W/dalvikvm(12258): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/esri/core/geometry/GeometryEngine;
01-17 14:51:07.608: W/dalvikvm(12258): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/esri/core/geometry/SpatialReference;
01-17 14:51:07.613: D/AndroidRuntime(12258): Shutting down VM
01-17 14:51:07.613: W/dalvikvm(12258): threadid=1: thread exiting with uncaught exception (group=0x40efa930)
01-17 14:51:07.618: E/AndroidRuntime(12258): FATAL EXCEPTION: main
01-17 14:51:07.618: E/AndroidRuntime(12258): java.lang.ExceptionInInitializerError
01-17 14:51:07.618: E/AndroidRuntime(12258):  at com.bah.ether.EtherActivity.<init>(EtherActivity.java:76)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at java.lang.Class.newInstanceImpl(Native Method)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at java.lang.Class.newInstance(Class.java:1319)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at android.app.ActivityThread.access$600(ActivityThread.java:141)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at android.os.Handler.dispatchMessage(Handler.java:99)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at android.os.Looper.loop(Looper.java:137)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at android.app.ActivityThread.main(ActivityThread.java:5039)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at java.lang.reflect.Method.invokeNative(Native Method)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at java.lang.reflect.Method.invoke(Method.java:511)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at dalvik.system.NativeStart.main(Native Method)
01-17 14:51:07.618: E/AndroidRuntime(12258): Caused by: java.lang.ExceptionInInitializerError
01-17 14:51:07.618: E/AndroidRuntime(12258):  at com.esri.core.geometry.SpatialReference.<clinit>(Unknown Source)
01-17 14:51:07.618: E/AndroidRuntime(12258):  ... 16 more
01-17 14:51:07.618: E/AndroidRuntime(12258): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load runtimecore_java from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.bah.ether-2.apk,libraryPath=/data/app-lib/com.bah.ether-2]: findLibrary returned null
01-17 14:51:07.618: E/AndroidRuntime(12258):  at java.lang.Runtime.loadLibrary(Runtime.java:365)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at java.lang.System.loadLibrary(System.java:535)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at com.esri.core.internal.util.e$1.initialize(Unknown Source)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at com.esri.core.geometry.GeometryEngine.a(Unknown Source)
01-17 14:51:07.618: E/AndroidRuntime(12258):  at com.esri.core.geometry.GeometryEngine.<clinit>(Unknown Source)
01-17 14:51:07.618: E/AndroidRuntime(12258):  ... 17 more


Please help.
0 Kudos
14 Replies
PatriziaPeller
Emerging Contributor
Hi!

I'm really desperate by now, because I just don't manage to make my application work anymore. I tried copying the new libs from a sample project, restarting eclipse and the device (a Samsung Galaxy S Plus with Android 2.3.3), fixing the project properties, but properties and build path look fine.

Finally, I tried running the sample project, which would not run either. Even there, I keep getting the unknown host exception.

The necessary permissions in Maifest are set, and the minSdkVersion is set to 10 as well. In BuildPath -> Order and Export ArcGIS for Android 10.1.1 is checked and not even a full reinstall of the ArcGIS plugin changed anything.

What am I doing wrong? Did I miss anything?

Greets.
0 Kudos
DanO_Neill
Deactivated User
Can you share which sample you are having issues with and provide the logcat with the error.
0 Kudos
PatriziaPeller
Emerging Contributor
I tried the Hello World Sample and just kept getting an unknown host exception saying that my map's domain could not be resolved by name. I don't know what did the trick, for i just kept retrying all the steps you suggested in several posts and at some point, the sample and application could be deployed successfully again.
0 Kudos
RemmieVail
Emerging Contributor
I just upgraded to 10.1.1 and started getting this issue and almost identical stack printout.  I've tried using the ArcGIS tool to fix the issue and copying the armeabi & armeabi-v7a folders, but NEITHER WORK. 

The hack I've come up with for now is adding the libGLMapCore.so file to the armeabi folder.  It works, but its a manual operation I'd rather find a proper fix for.
0 Kudos
DanO_Neill
Deactivated User
Can you share a screenshot of the project you are trying to convert before conversion and after so I can see what the tool did for you as well as the state of the project before you attempted to convert?
0 Kudos