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

來源:互聯網
上載者:User

標籤:android   style   blog   http   io   ar   color   os   sp   

在測試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

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.