Binary XML File:error Inflating class Com.esri.android.map.MapView

Source: Internet
Author: User

When testing the first program of ESRI ArcGIS for Android HelloWorld, report this error:

Binary XML File:error Inflating class Com.esri.android.map.MapView

The full error log is:

1 12-13 18:50:15.619:W/DALVIKVM (21282): Exception ljava/lang/unsatisfiedlinkerror; thrown while initializing lcom/ Esri/android/map/mapsurface;2 12-13 18:50:15.619:W/DALVIKVM (21282): Threadid=1:thread exiting with uncaught exception (group=0x4010c560)3 12-13 18:50:15.639:e/androidruntime (21282): FATAL exception:main4 12-13 18:50:15.639:e/androidruntime (21282): 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 #9: Error inflating class Com.esri.android.map.MapView5 12-13 18:50:15.639:e/androidruntime (21282): at Android.app.ActivityThread.performLaunchActivity ( activitythread.java:1647)6 12-13 18:50:15.639:e/androidruntime (21282): at Android.app.ActivityThread.handleLaunchActivity ( activitythread.java:1663)7 12-13 18:50:15.639:e/androidruntime (21282): at android.app.activitythread.access$1500 (ActivityThread.java:117 )8 12-13 18:50:15.639:e/androidruntime (21282): at Android.app.activitythread$h.handlemessage (ActivityThread.java : 931)9 12-13 18:50:15.639:e/androidruntime (21282): at Android.os.Handler.dispatchMessage (handler.java:99)Ten 12-13 18:50:15.639:e/androidruntime (21282): at Android.os.Looper.loop (looper.java:130) One 12-13 18:50:15.639:e/androidruntime (21282): at Android.app.ActivityThread.main (activitythread.java:3683) A 12-13 18:50:15.639:e/androidruntime (21282): at Java.lang.reflect.Method.invokeNative (Native Method) - 12-13 18:50:15.639:e/androidruntime (21282): at Java.lang.reflect.Method.invoke (method.java:507) - 12-13 18:50:15.639:e/androidruntime (21282): at Com.android.internal.os.zygoteinit$methodandargscaller.run ( zygoteinit.java:875) the 12-13 18:50:15.639:e/androidruntime (21282): at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:633)  - 12-13 18:50:15.639:e/androidruntime (21282): at Dalvik.system.NativeStart.main (Native Method) - 12-13 18:50:15.639:e/androidruntime (21282): caused by:android.view.InflateException:Binary XML file line #9: Error Inflating class Com.esri.android.map.MapView - 12-13 18:50:15.639:e/androidruntime (21282): at Android.view.LayoutInflater.createView (layoutinflater.java:518 ) + 12-13 18:50:15.639:e/androidruntime (21282): at Android.view.LayoutInflater.createViewFromTag ( layoutinflater.java:570) - 12-13 18:50:15.639:e/androidruntime (21282): at Android.view.LayoutInflater.rInflate (layoutinflater.java:623)  + 12-13 18:50:15.639:e/androidruntime (21282): at Android.view.LayoutInflater.inflate (layoutinflater.java:408)  A 12-13 18:50:15.639:e/androidruntime (21282): at Android.view.LayoutInflater.inflate (layoutinflater.java:320)  at 12-13 18:50:15.639:e/androidruntime (21282): at Android.view.LayoutInflater.inflate (layoutinflater.java:276)  - 12-13 18:50:15.639:e/androidruntime (21282): at Com.android.internal.policy.impl.PhoneWindow.setContentView ( phonewindow.java:208) - 12-13 18:50:15.639:e/androidruntime (21282): at Android.app.Activity.setContentView (activity.java:1657) - 12-13 18:50:15.639:e/androidruntime (21282): at Com.esri.arcgis.android.samples.helloworld.HelloWorld.onCreate (helloworld.java:41) - 12-13 18:50:15.639:e/androidruntime (21282): at Android.app.Instrumentation.callActivityOnCreate ( instrumentation.java:1047) - 12-13 18:50:15.639:e/androidruntime (21282): at Android.app.ActivityThread.performLaunchActivity ( activitythread.java:1611) in 12-13 18:50:15.639:e/androidruntime (21282): ... One More - 12-13 18:50:15.639:e/androidruntime (21282): caused By:java.lang.reflect.InvocationTargetException to 12-13 18:50:15.639:e/androidruntime (21282): at Java.lang.reflect.Constructor.constructNative (Native Method)  + 12-13 18:50:15.639:e/androidruntime (21282): at Java.lang.reflect.Constructor.newInstance (constructor.java:415 ) - 12-13 18:50:15.639:e/androidruntime (21282): at Android.view.LayoutInflater.createView (layoutinflater.java:505 ) the 12-13 18:50:15.639:e/androidruntime (21282): ... more * 12-13 18:50:15.639:e/androidruntime (21282): caused By:java.lang.ExceptionInInitializerError $ 12-13 18:50:15.639:e/androidruntime (21282): at COM.ESRI.ANDROID.MAP.MAPVIEW.A (Unknown Source)Panax Notoginseng12-13 18:50:15.639:e/androidruntime (21282): at Com.esri.android.map.MapView.<Init>(Unknown Source) - 12-13 18:50:15.639:e/androidruntime (21282): ... more the 12-13 18:50:15.639:e/androidruntime (21282): caused by:java.lang.UnsatisfiedLinkError:Couldn ' t load runtimecore_ Java:findlibrary returned null + 12-13 18:50:15.639:e/androidruntime (21282): at Java.lang.Runtime.loadLibrary (runtime.java:429) A 12-13 18:50:15.639:e/androidruntime (21282): at Java.lang.System.loadLibrary (system.java:554) the 12-13 18:50:15.639:e/androidruntime (21282): at Com.esri.core.internal.runtimehelper.a (Unknown Source) + 12-13 18:50:15.639:e/androidruntime (21282): at Com.esri.core.internal.RuntimeHelper.initialize (Unknown Source)  -12-13 18:50:15.639:e/androidruntime (21282): at Com.esri.android.map.MapSurface.<Clinit>(Unknown Source) $12-13 18:50:15.639:e/androidruntime (21282): ... More
View Code

My solution is to hook up the Android SDK on the project->properties->java Build Path->order and Export, ref:http:// Gis.stackexchange.com/questions/66089/arcgis-android-helloworld-mapview-inflateexception

Binary XML File:error Inflating class Com.esri.android.map.MapView

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.