Select to view content in your preferred language

Working on ARM, not working on Intel Atom (x86)...

7484
13
02-11-2013 10:43 PM
Jaros_awKowalczyk
Emerging Contributor
Hi, is there is some way to run Sample Applications on Emulator with x86 chipset (which on virtualized machines is so much faster than ARM)?
Those applications are working on ARM, but not working on Intel... Don't know why.
In running sample of HelloWorld App LogCat shows me:
02-12 07:59:17.647: E/AndroidRuntime(1303): FATAL EXCEPTION: main
02-12 07:59:17.647: E/AndroidRuntime(1303): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.esri.arcgis.android.samples.helloworld/com.esri.arcgis.android.samples.helloworld.HelloWorld}: android.view.InflateException: Binary XML file line #7: Error inflating class com.esri.android.map.MapView
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.os.Handler.dispatchMessage(Handler.java:99)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.os.Looper.loop(Looper.java:130)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.app.ActivityThread.main(ActivityThread.java:3683)
02-12 07:59:17.647: E/AndroidRuntime(1303): at java.lang.reflect.Method.invokeNative(Native Method)
02-12 07:59:17.647: E/AndroidRuntime(1303): at java.lang.reflect.Method.invoke(Method.java:507)
02-12 07:59:17.647: E/AndroidRuntime(1303): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-12 07:59:17.647: E/AndroidRuntime(1303): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-12 07:59:17.647: E/AndroidRuntime(1303): at dalvik.system.NativeStart.main(Native Method)
02-12 07:59:17.647: E/AndroidRuntime(1303): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class com.esri.android.map.MapView
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
02-12 07:59:17.647: E/AndroidRuntime(1303): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.app.Activity.setContentView(Activity.java:1657)
02-12 07:59:17.647: E/AndroidRuntime(1303): at com.esri.arcgis.android.samples.helloworld.HelloWorld.onCreate(HelloWorld.java:94)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
02-12 07:59:17.647: E/AndroidRuntime(1303): ... 11 more
02-12 07:59:17.647: E/AndroidRuntime(1303): Caused by: java.lang.reflect.InvocationTargetException
02-12 07:59:17.647: E/AndroidRuntime(1303): at java.lang.reflect.Constructor.constructNative(Native Method)
02-12 07:59:17.647: E/AndroidRuntime(1303): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
02-12 07:59:17.647: E/AndroidRuntime(1303): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
02-12 07:59:17.647: E/AndroidRuntime(1303): ... 21 more
02-12 07:59:17.647: E/AndroidRuntime(1303): Caused by: java.lang.ExceptionInInitializerError
02-12 07:59:17.647: E/AndroidRuntime(1303): at com.esri.android.map.MapView.a(Unknown Source)
02-12 07:59:17.647: E/AndroidRuntime(1303): at com.esri.android.map.MapView.<init>(Unknown Source)
02-12 07:59:17.647: E/AndroidRuntime(1303): ... 24 more
02-12 07:59:17.647: E/AndroidRuntime(1303): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load GLMapCore: findLibrary returned null
02-12 07:59:17.647: E/AndroidRuntime(1303): at java.lang.Runtime.loadLibrary(Runtime.java:429)
02-12 07:59:17.647: E/AndroidRuntime(1303): at java.lang.System.loadLibrary(System.java:554)
02-12 07:59:17.647: E/AndroidRuntime(1303): at com.esri.android.a.a.a(Unknown Source)
02-12 07:59:17.647: E/AndroidRuntime(1303): at com.esri.android.map.MapSurface.<clinit>(Unknown Source)
02-12 07:59:17.647: E/AndroidRuntime(1303): ... 26 more

, but on ARM works fine.
0 Kudos
13 Replies
ThomasBinu
Deactivated User
Yes I tried, it mostly works but there are still some weird errors especially with callouts
0 Kudos
MáximoMussini
Emerging Contributor
It's not working for me. From what I understand, Genymotion also uses x86.
If I don't provide a libruntimecore_java.so for x86 it crashes:
java.lang.UnsatisfiedLinkError: Couldn't load runtimecore_java from loader

If you provide a .so for x86 (an invalid one) it doesn't crash, but naturally, it doesn't work either.

I think ESRI should put more though into this. x86 emulation has clearly been adopted by the whole Android community, any library vendor should provide an x86 version of the native libraries used.
0 Kudos
DanO_Neill
Deactivated User
Trying to keep these posts in synch.  I will add that we are testing with genymotion emulator as well since this post referenced it.
0 Kudos
RobertHewlett2
Deactivated User
This is what is working for me:

Some of the samples with the following combination of software:
'SDK ADT Bundle for Windows' (version 22.3) (64 bit)
http://developer.android.com/sdk/index.html#download

ArcGIS Runtime for Android 10.2 (local)
https://developers.arcgis.com/en/android/

I did not install the the genymotion plugin for eclipse, the DDMS (adb) picked up the emulator. Previously, I had to do adb connect at the command-line.

I found that genymotion likes virtualbox to be running before it starts.
0 Kudos