在测试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.<init>(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.<clinit>(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:http://gis.stackexchange.com/questions/66089/arcgis-android-helloworld-mapview-inflateexception

更多相关文章

  1. 高级Redis应用进阶课 一站式Redis解决方案
  2. Gradle build 报错:Received status code 400 from server
  3. 【JAVA】给大家推荐一道有意思的java测试题。你知道答案吗?
  4. Android监听程序的安装和卸载
  5. Both setBehindContentView must be called in onCreate in addi
  6. android vlc源码编译
  7. Android(安卓)NDK *** could not be resolved
  8. android studio 编译调试 错误
  9. android studio2.0遇到的问题及解决方案记录及 .9.png制作

随机推荐

  1. Android的消息机制
  2. Android(安卓)编程下 Touch 事件的分发和
  3. Android(安卓)中文 API (30) ―― Compound
  4. Android分享界面制作(底部滑出动画)
  5. Android的System Server
  6. android编写访问http的代码
  7. ArcGIS for Android
  8. android:layout_weight的真实含义
  9. Android-基本控件(SeekBar 可拖动 滚动条
  10. android中getCacheDir(),getFilesDir(),get