ArcGis Failedto open file. May not be a valid tile package
在使用ArcGIS的时候遇到一些错误:
官方网站:
https://developers.arcgis.com/android/10-2/
1、Failed to open file. May not be a valid tile package
这个错误出现的原因是离线地图包可能出现问题,换了个其他离线地图包就可以了
离线地图.tpk文件测试:
https://download.csdn.net/download/carlinwxk/9291959
2、在一些手机报MapView xml文件错误:
Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.esri.android.map.MapView
at android.view.LayoutInflater.inflate(LayoutInflater.java:561)
at android.view.LayoutInflater.inflate(LayoutInflater.java:437)
at android.view.LayoutInflater.inflate(LayoutInflater.java:380)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:451)
at android.app.Activity.setContentView(Activity.java:2232)
at com.example.ywx484581.myapplication.ReadSdcardActivity.onCreate(ReadSdcardActivity.java:40)
at android.app.Activity.performCreate(Activity.java:6418)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2432)
1、 确认下jar包,so包要配套使用
2、 删除所有的包,用新的替换试试
这也只是建议,我这尝试还是会报这个错,如果有解决办法,可以讨论下。