Binary XML file : Error inflating class com.esri.android.map.MapView
在测试esri arcgis for android的第一个程序Helloworld的时候,报这样的错:
Binary XML file : Error inflating class com.esri.android.map.MapView
完整错误log为:
12-13 18:50:15.619: W/dalvikvm(21282): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/esri/android/map/MapSurface;
12-13 18:50:15.619: W/dalvikvm(21282): threadid=1: thread exiting with uncaught exception (group=0x4010c560)
12-13 18:50:15.639: E/AndroidRuntime(21282): FATAL EXCEPTION: main
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
12-13 18:50:15.639: E/AndroidRuntime(21282): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
12-13 18:50:15.639: E/AndroidRuntime(21282): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
12-13 18:50:15.639: E/AndroidRuntime(21282): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
12-13 18:50:15.639: E/AndroidRuntime(21282): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
12-13 18:50:15.639: E/AndroidRuntime(21282): at android.os.Handler.dispatchMessage(Handler.java:99)
12-13 18:50:15.639: E/AndroidRuntime(21282): at android.os.Looper.loop(Looper.java:130)
12-13 18:50:15.639: E/AndroidRuntime(21282): at android.app.ActivityThread.main(ActivityThread.java:3683)
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)
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)
12-13 18:50:15.639: E/AndroidRuntime(21282): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
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)
12-13 18:50:15.639: E/AndroidRuntime(21282): ... 11 more
12-13 18:50:15.639: E/AndroidRuntime(21282): Caused by: java.lang.reflect.InvocationTargetException
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)
12-13 18:50:15.639: E/AndroidRuntime(21282): ... 21 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)
12-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): ... 24 more
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)
12-13 18:50:15.639: E/AndroidRuntime(21282): at java.lang.System.loadLibrary(System.java:554)
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): ... 26 more
我的解决方案是在项目->Properties->Java Build Path->Order and Export上,勾上android sdk即可,ref:http://gis.stackexchange.com/questions/66089/arcgis-android-helloworld-mapview-inflateexception
Binary XML file : Error inflating class com.esri.android.map.MapView的更多相关文章
- 【Arcgis for android】Error inflating class com.esri.android.map.MapView【已解决】
解决方案:如果你是一个项目之前调试是好的,突然调试报这个错,听我的,直接卸载手机上调试的这个程序,重新调试,你会发现ok了 环境:arcgis android 10.2 错误:E/AndroidRun ...
- Android 百度地图 android.view.InflateException: Binary XML file line Error inflating class com.baidu.mapapi.map.MapView
android.view.InflateException: Binary XML file line Error inflating class com.baidu.mapapi.map.MapVi ...
- 调用百度地图API出现 error inflating class com.baidu.mapapi.map.mapview
问题如下 本来以为解决了,但后来重新运行了一下,又坏了,然后改成原来的样子,又好了. 结果就是:对不住了各位看官,没找到解决办法,不过经测试有个地方,可能在程序运行时,出现error inflatin ...
- 解决ArcGIS Android Could not find class 'com.esri.android.map.MapView'问题
环境win7 64bit sp1,eclipse 4.2.1 ,android API 16,ADT 23.0.2,arcgis android sdk 10.2.4 从arcgis-android- ...
- 百度地图sdk问题 error inflating class com.baidu.mapapi.map.mapview
最近在封装开发中,有机会遇到问题还是记录下吧 但是其实都是一个原因 就是 初始化 在MyAplication onCreate()中加入 SDKInitializer.initialize(get ...
- fragment显示 Binary XML file line #12: Error inflating class fragment 错误
问题 最近换了新机子,今天在静态用fragment时突然发现闪退,一看显示 Binary XML file line #12: Error inflating class fragment 错误 后面 ...
- 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/AndroidRunti ...
- Android项目部署时,发生AndroidRuntime:android.view.InflateException: Binary XML file line #168: Error inflating class错误
这个错误也是让我纠结了一天,当时写的项目在安卓虚拟机上运行都很正常,于是当我部署到安卓手机上时,点击登陆按钮跳转到用户主界面的时候直接结束运行返回登陆界面. 当时,我仔细检查了一下自己的代码,并 ...
- bug_ _图片_android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>
=========== 1 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zgan.communit ...
随机推荐
- 【MySQL】SQL语法,between and 使用注意事项
业务代码中有条查询学生姓名的sql: select stu_name from stu_info where stu_id between id_1 and id_2; 估计当时一时恍惚,拼接sql时 ...
- Unity 弹出界面时屏蔽对3D场景的点击
注:这里的UI制作用的是NGUI插件 如题,在游戏中经常会遇到这种情况,场景中点击相关物体或者按钮弹出对应的2D界面,这时候除了2D界面上的可点击按钮等,应该屏蔽掉对3D场景的点击或者拖动事件. 在这 ...
- Unity NGUI实现按钮点击播放Aniamtion
unity版本:4.5 NGUI版本:3.6.5 参考链接:http://www.colabug.com/thread-1029974-1-1.html,作者:COLABUG.COM 橘虞 1.怎么创 ...
- BZOJ1679: [Usaco2005 Jan]Moo Volume 牛的呼声
1679: [Usaco2005 Jan]Moo Volume 牛的呼声 Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 723 Solved: 346[ ...
- 微信下载APK
腾讯应用宝 微信屏蔽了来源不是腾讯的APK function isWeixin() { var ua = navigator.userAgent.toLowerCase() if(ua.match(/ ...
- CentOS 6.3上搭建PPTP VPN
系统版本:CentOS 6.3_x86_64 eth0:172.16.10.72(实验环境当公网IP使用) eth1:192.168.100.50 1.检测是否支持ppp模块 # cat /dev/p ...
- Delphi 弹出Windows风格的选择文件夹对话框, 还可以新建文件夹
Delphi 弹出Windows风格的选择文件夹对话框, 还可以新建文件夹 unit Unit2; interface uses Windows, Messages, SysUtils, V ...
- HDOJ(HDU) 2113 Secret Number(遍历数字位数的每个数字)
Problem Description 有一天, KIKI 收到一张奇怪的信, 信上要KIKI 计算出给定数各个位上数字为偶数的和. eg. 5548 结果为12 , 等于 4 + 8 KIKI 很苦 ...
- 动态规划——E (LIS())最长上升子序列
E - LIS Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Stat ...
- UNIX环境下的消息队列
消息队列和共享内存一样,也是一种IPC对象.消息队列其实就是消息的链表,每一则消息都是用户自己的结构体.服务端这边创建消息队列,客户端这边打开消息队列,两个进程就可以进行通信.创建和打开消息队列使用函 ...