尝试在API级别为21和22(lolipop)的设备中运行应用程序时出现此错误 但初始化Map Fragment在API 18和19(KitKat)中运行良好。 有人对此有所了解吗?
这里的logcat
02-22 13:34:31.960 2346-2346 /?我/艺术:不迟到-Xcheck:jni(已经开启)02-22 13:34:32.030 2346-2352 /?我/艺术:忽略第二个调试器 - 接受和删除02-22 13:34:32.030 2346-2352 /? E / art:向调试器发送回复失败:管道损坏02-22 13:34:32.030 2346-2352 /?我/艺术:调试器不再有效02-22 13:34:32.040 2346-2352 /? W / art:暂停所有线程:10ms 02-22 13:34:32.100 2346-2346 /? W / System.err:org.xml.sax.SAXParseException:文档02-22 13:34:32.100 2346-2346 /?的意外结束W / System.err:at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:125)02-22 13:34:32.100 2346-2346 /? W / System.err:at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.nokia.maps.fi.a(XmlToDocParser.java:24)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.nokia.maps.ResourceManager.a(ResourceManager.java:212)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.nokia.maps.ResourceManager.a(ResourceManager.java:138)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.nokia.maps.as。(GLConfigHelper.java:38)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.nokia.maps.y.a(BaseTextureView.java:61)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.nokia.maps.y。(BaseTextureView.java:54)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.nokia.maps.bx。(MapTextureView.java:36)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.here.android.mpa.mapping.MapView.a(MapView.java:320)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.here.android.mpa.mapping.MapView。(MapView.java:169)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.nokia.maps.bk.a(MapFragmentImpl.java:143)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.here.android.mpa.mapping.MapFragment.onCreateView(MapFragment.java:147)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.Fragment.performCreateView(Fragment.java:2220)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.FragmentManagerImpl.moveToState(FragmentManager.java:949)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1126)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1228)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2201)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.FragmentController.onCreateView(FragmentController.java:98)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.Activity.onCreateView(Activity.java:5546)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:34)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:79)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:754)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.rInflate(LayoutInflater.java:835)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.parseInclude(LayoutInflater.java:971)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.rInflate(LayoutInflater.java:831)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.parseInclude(LayoutInflater.java:971)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.rInflate(LayoutInflater.java:831)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.inflate(LayoutInflater.java:515)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.inflate(LayoutInflater.java:423)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.view.LayoutInflater.inflate(LayoutInflater.java:374)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.student.fyp.MainActivity.onCreate(MainActivity.java:109)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.Activity.performCreate(Activity.java:6237)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.ActivityThread.-wrap11(ActivityThread.java)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1344)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.os.Handler.dispatchMessage(Handler.java:102)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.os.Looper.loop(Looper.java:148)02-22 13:34:32.100 2346-2346 /? W / System.err:在android.app.ActivityThread.main(ActivityThread.java:5417)02-22 13:34:32.100 2346-2346 /? W / System.err:at java.lang.reflect.Method.invoke(Native Method)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:726)02-22 13:34:32.100 2346-2346 /? W / System.err:at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)02-22 13:34:32.160 2346-2359 /? D / OpenGLRenderer:使用EGL_SWAP_BEHAVIOR_PRESERVED:true 02-22 13:34:32.160 2346-2346 /? I / System.out:ERROR:MISSING_LIBRARIES 02-22 13:34:32.200 2346-2359 /? I / OpenGLRenderer:初始化的EGL,版本1.4 02-22 13:34:32.240 2346-2359 /? W / EGL_emulation:eglSurfaceAttrib未实现02-22 13:34:32.240 2346-2359 /? W / OpenGLRenderer:无法在表面0x7fd678ed98c0上设置EGL_SWAP_BEHAVIOR,错误= EGL_SUCCESS
答案 0 :(得分:0)
你可以解压缩你的APK文件吗?
该文件是否包含以下内容:
/libs/armeabi-v7a/libMAPSJNI.so
/libs/armeabi-v7a/libMapsEngineResources.so
/libs/armeabi-v7a/lib ....
如果您的APK不包含本机库,则会导致上述错误。