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 ...
随机推荐
- python Hbase Thrift pycharm 及引入包
cp -r hbase/ /usr/lib/python2.7/site-packages/ 官方示例子http://code.google.com/p/hbase-thrift/source/bro ...
- 【转】SharePoint 2013 stand alone服务器安装
原文地址:http://www.cnblogs.com/jianyus/archive/2013/02/01/2889653.html 介绍:文章就是SharePoint2013安装过程的图解,包括 ...
- DB2 SQL RR/RS/CS/UR四个级别《转载》
1.RR隔离级别:在此隔离级别下, DB2会锁住所有相关的纪录.在一个SQL语句执行期间,所有执行此语句扫描过的纪录都会被加上相应的锁.具体的锁的类型还是由操作的类型来决定,如果是读取,则加共享锁:如 ...
- 程序员面试宝典题目重温-P1-100
int f(int x ,int y){ return (x&y) + ((x^y)>>1)} f(729,271)输出是什么? x&y表示按位与,结果是x,y相同位 ...
- 两个div之间有空隙
加句*{ margin:0; padding:0;} 最近在做网页时发现,在IE7下(FF没试过),div与div之间有时会出20个像素左右的空隙,除非把margin设成负值,否则空隙无法去除.我在 ...
- open和fopen的区别(转)
转载自:http://www.cnblogs.com/joeblackzqq/archive/2011/04/11/2013010.html open和fopen的区别: 1.缓冲文件系统缓 冲文件系 ...
- Blue Jeans(串)
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10083 Accepted: 4262 Description The ...
- centos 安装node js环境
node.js支持多种平台安装,其中Win平台安装比较简单,下面重点讲解下Linux平台的安装步骤.本文以CentOS平台为实例,不准备讲 解采取源码编译安装方式,而是采取在node.js网站下载已经 ...
- poj2287
田忌赛马的题目- - 贪心策略: 1,如果田忌的最快马快于齐王的最快马,则两者比. (因为若是田忌的别的马很可能就赢不了了,所以两者比) 2,如果田忌的最快马慢于齐王的最快马,则用田忌的最慢马和齐王的 ...
- 在反射中Member{get{..}set{..}}与Member{get;set;}的区别?
最近的在写代码的时候,需要用到反射来获取类中的所有公开属性值,于是写下如下代码: StringBuilder sb = new StringBuilder(); foreach (var f in t ...