我偶然发现了一个非常特殊的问题。一些本地库之间似乎存在冲突(我假设)。在同一项目中使用 HERE 高级SDK for android 和 Facebook的 Fresco 库时,将导致HERE地图无法呈现。一旦我从我的项目中删除 Fresco 库,它就会表现出来并按照它应该呈现。
当然最简单的解决方案是不使用 Fresco ,但我宁愿不这样做。
任何人都知道发生了什么或如何解决这个问题?
这是它抛出的错误:
org.xml.sax.SAXParseException: Unexpected end of document
at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:125)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
at com.nokia.maps.fh.a(XmlToDocParser.java:24)
at com.nokia.maps.ResourceManager.a(ResourceManager.java:212)
at com.nokia.maps.ResourceManager.a(ResourceManager.java:138)
at com.nokia.maps.as.<init>(GLConfigHelper.java:38)
at com.nokia.maps.y.a(BaseTextureView.java:61)
at com.nokia.maps.y.<init>(BaseTextureView.java:54)
at com.nokia.maps.bx.<init>(MapTextureView.java:36)
at com.here.android.mpa.mapping.MapView.a(MapView.java:320)
at com.here.android.mpa.mapping.MapView.<init>(MapView.java:169)
at com.nokia.maps.bk.a(MapFragmentImpl.java:143)
at com.here.android.mpa.mapping.MapFragment.onCreateView(MapFragment.java:147)
at android.app.Fragment.performCreateView(Fragment.java:2114)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:875)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1060)
at android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1162)
at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2131)
at android.app.Activity.onCreateView(Activity.java:5751)
at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:34)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:78)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:740)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
at android.view.LayoutInflater.inflate(LayoutInflater.java:511)
at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
at com.justpark.ondemand.ui.activity.BaseActivity.setContentView(BaseActivity.java:20)
at com.justpark.ondemand.ui.activity.TurnByTurnActivity.onCreate(TurnByTurnActivity.java:145)
at android.app.Activity.performCreate(Activity.java:6500)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1120)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3072)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3218)
at android.app.ActivityThread.access$1000(ActivityThread.java:198)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1676)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6837)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
答案 0 :(得分:0)
似乎Fresco有一个名为eglconfig.xml的文件,该文件也必须存在于fresco资源或应用程序中?如果从资源树中删除此xml文件,它有帮助吗?
/我来自HERESDK团队并感谢您的反馈!