在测试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的更多相关文章

  1. 【Arcgis for android】Error inflating class com.esri.android.map.MapView【已解决】

    解决方案:如果你是一个项目之前调试是好的,突然调试报这个错,听我的,直接卸载手机上调试的这个程序,重新调试,你会发现ok了 环境:arcgis android 10.2 错误:E/AndroidRun ...

  2. 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 ...

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

    问题如下 本来以为解决了,但后来重新运行了一下,又坏了,然后改成原来的样子,又好了. 结果就是:对不住了各位看官,没找到解决办法,不过经测试有个地方,可能在程序运行时,出现error inflatin ...

  4. 解决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- ...

  5. 百度地图sdk问题 error inflating class com.baidu.mapapi.map.mapview

    最近在封装开发中,有机会遇到问题还是记录下吧 但是其实都是一个原因  就是 初始化 在MyAplication  onCreate()中加入 SDKInitializer.initialize(get ...

  6. fragment显示 Binary XML file line #12: Error inflating class fragment 错误

    问题 最近换了新机子,今天在静态用fragment时突然发现闪退,一看显示 Binary XML file line #12: Error inflating class fragment 错误 后面 ...

  7. 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 ...

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

    这个错误也是让我纠结了一天,当时写的项目在安卓虚拟机上运行都很正常,于是当我部署到安卓手机上时,点击登陆按钮跳转到用户主界面的时候直接结束运行返回登陆界面.    当时,我仔细检查了一下自己的代码,并 ...

  9. 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 ...

随机推荐

  1. BZOJ 1008 越狱

    Description 监狱有连续编号为1...N的N个房间,每个房间关押一个犯人,有M种宗教,每个犯人可能信仰其中一种.如果相邻房间的犯人的宗教相同,就可能发生越狱,求有多少种状态可能发生越狱 In ...

  2. 舍伍德(Sherwood)算法学习笔记

    一.概念引入 设A是一个确定性算法,当它的输入实例为x时所需的计算时间记为tA(x).设Xn是算法A的输入规模为n的实例的全体,则当问题的输入规模为n时,算法A所需的平均时间为.这显然不能排除存在x∈ ...

  3. IE7和IE8出现的计算判断问题

    吸住底部菜单 IE7和IE8下会卡死的算法 ; } function fixedBar(){ var _height=$(this).height()+$(this).scrollTop(); var ...

  4. hdu 5128 The E-pang Palace

    http://acm.hdu.edu.cn/showproblem.php?pid=5128 题意:给定N个点,选出其中8个点组成两个矩形,使得两个矩形的面积和最大. 思路:找出所有的矩形,然后枚举, ...

  5. ioc开发学习 --简易计时器 (基于iPhone5屏幕尺寸开发)

    超简单的秒表:包含:开始.暂停(不清零).清零 方法 核心代码 // // ViewController.m // MiaoBiao // // Created by Ibokan on 15/8/1 ...

  6. 一点BPXA的思考

    懂的人自然懂... BPXA功能配置 这个概念现在还有印象,记录下来: 一,BPXA是用于BP使用第三方资源的.如使用ORACLE数据库,就是在XA里配置.它的特征是以<xa>开头 二,B ...

  7. No row with the given identifier exists[ArtProject.Domains.Users#2]

      产生此问题的原因:              有两张表,table1和table2. 产生此问题的原因就是table1里做了关联<one-to-one>或者<many-to-on ...

  8. 数学(线性规划):UVAoj 10498 Happiness

    Problem GHappiness! Input: standard inputOutput: standard outputTime Limit: 3 seconds Prof. Kaykobad ...

  9. zoj 3672 Gao The Sequence

    http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4915题意:a[k]-一个任意的数,这个数要等于a[1]~a[k]每个数减去任意 ...

  10. [Locked] Find the Celebrity

    Find the Celebrity Suppose you are at a party with n people (labeled from 0 to n - 1) and among them ...