博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Binary XML file : Error inflating class com.esri.android.map.MapView
阅读量:4554 次
发布时间:2019-06-08

本文共 5521 字,大约阅读时间需要 18 分钟。

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

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

完整错误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.MapView18 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 more30 12-13 18:50:15.639: E/AndroidRuntime(21282): Caused by: java.lang.reflect.InvocationTargetException31 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 more35 12-13 18:50:15.639: E/AndroidRuntime(21282): Caused by: java.lang.ExceptionInInitializerError36 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.
(Unknown Source)38 12-13 18:50:15.639: E/AndroidRuntime(21282): ... 24 more39 12-13 18:50:15.639: E/AndroidRuntime(21282): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load runtimecore_java: findLibrary returned null40 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.
(Unknown Source)45 12-13 18:50:15.639: E/AndroidRuntime(21282): ... 26 more
View Code

我的解决方案是在项目->Properties->Java Build Path->Order and Export上,勾上android sdk即可,ref:

转载于:https://www.cnblogs.com/listened/p/4161730.html

你可能感兴趣的文章
Linux 下的 scp
查看>>
理解同步,异步和延迟脚本
查看>>
MMS源码中异步处理简析
查看>>
XMind 6 如何画流程图
查看>>
final发布评价
查看>>
DLL远程注入与卸载
查看>>
Jmeter-ForEach控制器
查看>>
Checklist: 2019 05.01 ~ 06.30
查看>>
Binary XML file : Error inflating class com.esri.android.map.MapView
查看>>
grep,awk和sed
查看>>
.NET Core WebAPI IIS 部署问题
查看>>
SystemTap 静态探针安装包
查看>>
数据模型
查看>>
[LeetCode&Python] Problem 371. Sum of Two Integers
查看>>
HDU-4288 Coder 线段树
查看>>
HDU-1878 欧拉回路 判定是否存在欧拉回路
查看>>
大道至简读后感
查看>>
避免死锁的银行家算法
查看>>
resultMap自定义某个javaBean的封装规则代码
查看>>
oracle tkprof 工具详解
查看>>