AnsweredAssumed Answered

Error inflating class com.esri.android.map.MapView for Android 64-bit Lollipop device

Question asked by 30221Z on Nov 19, 2015
Latest reply on Nov 26, 2015 by sgill-esristaff

Hi all,

 

I encountered the exception below when running the esri map on my LG G4 (64 bit Lollipop).

 

I was using SDK 10.2.5 and have already upgrade to 10.2.7, removed the old .so and jar files from 10.2.5 (as I was using Eclipse previously) and followed the instructions to install with Gradle in Android Studio.

 

   repositories { jcenter() maven { url 'https://esri.bintray.com/arcgis' } } dependencies { compile 'com.esri.arcgis.android:arcgis-android:10.2.7' }

 

 

I noticed in the error below it's because it  "couldn't find "libruntimecore_java.so"" Does that mean that I still need to manually include the .so files into the lib folder even after I install using Gradle?

 

________________________________________________________________________________________

 

E/AndroidRuntime: android.view.InflateException: Binary XML file line #6: Error inflating class com.esri.android.map.MapView

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:633)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:504)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:414)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.hdb.mobilehdbv2.mapservices.OneMapTabActivity.onCreateView(OneMapTabActivity.java:169)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.Fragment.performCreateView(Fragment.java:1965)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1078)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1259)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1624)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5430)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:288)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:607)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:504)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:414)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.hdb.mobilehdbv2.mapservices.OneMapTabActivity.onCreateView(OneMapTabActivity.java:169)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.Fragment.performCreateView(Fragment.java:1965)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1078)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1259)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1624)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5430)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/hdb.android-2/base.apk"],nativeLibraryDirectories=[/data/app/hdb.android-2/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libruntimecore_java.so"

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:366)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.System.loadLibrary(System.java:988)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.esri.core.internal.RuntimeHelper.a(SourceFile:85)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.esri.core.internal.RuntimeHelper.initialize(SourceFile:47)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.esri.android.map.MapSurface.<clinit>(SourceFile:68)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.esri.android.map.MapView.a(SourceFile:586)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at com.esri.android.map.MapView.<init>(SourceFile:621)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:288)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:607)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:504)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:414)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.hdb.mobilehdbv2.mapservices.OneMapTabActivity.onCreateView(OneMapTabActivity.java:169)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.Fragment.performCreateView(Fragment.java:1965)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1078)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1259)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1624)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5430)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

11-19 16:46:53.924 30290-30290/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)

Outcomes