Binary XML file : Error inflating class com.esri.android.map.MapView

在测试esri arcgis for android的第一个程序Helloworld的时候,报这样的错:

完整错误log为:

 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: main
 4 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.MapView
 5 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)
10 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.os.Looper.loop(Looper.java:130)
11 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.app.ActivityThread.main(ActivityThread.java:3683)
12 12-13 18:50:15.639: E/AndroidRuntime(21282):     at java.lang.reflect.Method.invokeNative(Native Method)
13 12-13 18:50:15.639: E/AndroidRuntime(21282):     at java.lang.reflect.Method.invoke(Method.java:507)
14 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
15 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
16 12-13 18:50:15.639: E/AndroidRuntime(21282):     at dalvik.system.NativeStart.main(Native Method)
17 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
18 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.view.LayoutInflater.createView(LayoutInflater.java:518)
19 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
20 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
21 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
22 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
23 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
24 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:208)
25 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.app.Activity.setContentView(Activity.java:1657)
26 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.esri.arcgis.android.samples.helloworld.HelloWorld.onCreate(HelloWorld.java:41)
27 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
28 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
29 12-13 18:50:15.639: E/AndroidRuntime(21282):     ... 11 more
30 12-13 18:50:15.639: E/AndroidRuntime(21282): Caused by: java.lang.reflect.InvocationTargetException
31 12-13 18:50:15.639: E/AndroidRuntime(21282):     at java.lang.reflect.Constructor.constructNative(Native Method)
32 12-13 18:50:15.639: E/AndroidRuntime(21282):     at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
33 12-13 18:50:15.639: E/AndroidRuntime(21282):     at android.view.LayoutInflater.createView(LayoutInflater.java:505)
34 12-13 18:50:15.639: E/AndroidRuntime(21282):     ... 21 more
35 12-13 18:50:15.639: E/AndroidRuntime(21282): Caused by: java.lang.ExceptionInInitializerError
36 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.esri.android.map.MapView.a(Unknown Source)
37 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.esri.android.map.MapView.<init>(Unknown Source)
38 12-13 18:50:15.639: E/AndroidRuntime(21282):     ... 24 more
39 12-13 18:50:15.639: E/AndroidRuntime(21282): Caused by: java.lang.UnsatisfiedLinkError: Couldn‘t load runtimecore_java: findLibrary returned null
40 12-13 18:50:15.639: E/AndroidRuntime(21282):     at java.lang.Runtime.loadLibrary(Runtime.java:429)
41 12-13 18:50:15.639: E/AndroidRuntime(21282):     at java.lang.System.loadLibrary(System.java:554)
42 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.esri.core.internal.RuntimeHelper.a(Unknown Source)
43 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.esri.core.internal.RuntimeHelper.initialize(Unknown Source)
44 12-13 18:50:15.639: E/AndroidRuntime(21282):     at com.esri.android.map.MapSurface.<clinit>(Unknown Source)
45 12-13 18:50:15.639: E/AndroidRuntime(21282):     ... 26 more

我的解决方案是在项目->Properties->Java Build Path->Order and Export上,勾上android sdk即可,ref:http://gis.stackexchange.com/questions/66089/arcgis-android-helloworld-mapview-inflateexception

时间: 2024-10-27 23:00:15

Binary XML file : Error inflating class com.esri.android.map.MapView的相关文章

百度地图开发 SDK v3.2.0 遇到 Error inflating class com.baidu.mapapi.map.MapView解决方案

使用百度地图 SDK v3.2.0 地图时遇到的一个"找不到 com.baidu.mapapi.map.MapView"的问题 (按照API写的) 上网找了很多解决方案,不能解决,有的说需要在application里加android:name=""...,有的说需要在要在setContentView前初始化BMapManager对象 ......(现在的新版本根本找不到BMapManager这个类) 本人试了,全部无效 报错android.view.InflateE

调用百度地图API出现 error inflating class com.baidu.mapapi.map.mapview

问题如下 本来以为解决了,但后来重新运行了一下,又坏了,然后改成原来的样子,又好了. 结果就是:对不住了各位看官,没找到解决办法,不过经测试有个地方,可能在程序运行时,出现error inflating class com.baidu.mapapi.map.mapview: 1.xml布局文件的布局必须用LinearLayout,因为我改成Gridlayout之后,就会出现上述的错误. 先留着问题,我现在能用了.有问题的时候再来解决吧.各位要是有人解决掉了,给我留个言,在这里先谢谢啦~

解决ArcGIS Android Could not find class &#39;com.esri.android.map.MapView&#39;问题

环境win7 64bit sp1,eclipse 4.2.1 ,android API 16,ADT 23.0.2,arcgis android sdk 10.2.4 从arcgis-android-sdk-v10.2.4包里取出其中的例子helloworld,作为项目import进去 1.Class referenced in the layout file, com.esri.android.map.MapView lint之后,在main.xml报Class referenced in t

android Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Must specify unique

今天写了一个静态得fragment,好久没写了,一写就出现问题了,先看下布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height=&qu

Android项目部署时,发生AndroidRuntime:android.view.InflateException: Binary XML file line #168: Error inflating class错误

这个错误也是让我纠结了一天,当时写的项目在安卓虚拟机上运行都很正常,于是当我部署到安卓手机上时,点击登陆按钮跳转到用户主界面的时候直接结束运行返回登陆界面.    当时,我仔细检查了一下自己的代码,并没有发现什么问题,在logcat上显示的报错如下:AndroidRuntime:android.view.InflateException: Binary XML file line #168: Error inflating class(这是其中报错的最主要的一行信息).  于是我在百度上几乎查看

bug_ _图片_android.view.InflateException: Binary XML file line #1: Error inflating class &lt;unknown&gt;

=========== 1   java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zgan.community/com.zgan.community.activity.CommunityPolicitalDetailActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class <unknow

android 细节之android.view.InflateException: Binary XML file line #95: Error inflating class(out of m)

今天的异常很有意思,叫做android.view.InflateException: Binary XML file line #95: Error inflating class(out of memory) . 其实是因为out of memory,导致 xml是不可能被充气成功,因此activity的onCreate方法中, setContentView(R.layout.***)也就不可能成功调用. 他出现在我有多个教学动画,并且播放的动画,是基于imageView,imageView的

Binary XML file line #2: Error inflating

06-27 14:29:27.600: E/AndroidRuntime(6936): FATAL EXCEPTION: main 06-27 14:29:27.600: E/AndroidRuntime(6936): android.view.InflateException: Binary XML file line #2: Error inflating class com.example.FileListItem 06-27 14:29:27.600: E/AndroidRuntime(

Binary XML file line #7: Error inflating class fragment

这几天一直在学习碎片,想自己写一个相关的程序试试,没想到刚写一点就出了问题. 在加载主布局文件activity_main.xml时候,出现错误 06-12 13:11:12.873: E/AndroidRuntime(2022): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gentleni.demo_grideview_002/com.gentleni.demo_grideview_002.Mai