【Arcgis for android】Error inflating class com.esri.android.map.MapView【已解决】
环境:arcgis android 10.2
错误:E/AndroidRuntime(6004): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.esri.arcgis.android.samples.offlineeditor/com.esri.arcgis.android.samples.offlineeditor.OfflineEditorActivity}: android.view.InflateException: Binary XML file line #49: Error inflating class com.esri.android.map.MapView
解决方法:
查看项目下是否有libs文件夹,正常情况下其中应该有
如果没有,在项目上右键 ->arcgis tools->convert to arcgis android project
如果libs正常,在项目上右键 ->arcgis tools->fix project properties
如果上面都没问题,还是报错,可以把android项目也fis一下。
项目上右键->android tools ->fix project properties
如果还是不行,只能重新建项目了,重新把代码复制粘贴一次。
当然这种方法只能是偶尔出这种问题,如果经常出现,可以考虑重新配置下环境了。
今天突然解决了这个问题,以前都是在尝试了上述方法后无能为力之后重新建项目的,今天偶然之间解决了。
方法就是把真机调试上的应用卸载之后再重新调试,结果就好了,很奇怪。
ps:你过你有相同情况,解决或者没解决,请留言一起讨论。
今天再次出现这个错误,把真机调试上的应用卸载掉之后重新调试,又好了,目测这就是解决方案啊!!!!
更多相关文章
- Android(安卓)Unable to execute dex: java.nio.BufferOverflowE
- Ubuntu android studio 调试 android wear 智能手表
- 【AS-AndroidX】迁移AndroidX带来的问题
- 像素鸟(flapybird)的简单实现
- android截屏示例,适合流媒体 MediaPlayer截屏
- Socket编程java[简单易懂],附带Android(安卓)Studio 项目聊天实
- android proguard 错误处理
- ubuntu 16.04 编译 android 6.0 错误
- android studio 3.0 di 注入插件引入错误