1.使用场景
- 开发环境;
- 高德sdk和realm数据库同时使用;
地图sdk版本:
AMap_3DMap_V3.4.0_20160809
relam版本:2.0.1
2.报错
10-12 11:49:35.207 26518-26518/win.yulongsun.onehome_ipqc E/AndroidRuntime: FATAL EXCEPTION: main
Process: win.yulongsun.onehome_ipqc, PID: 26518
java.lang.UnsatisfiedLinkError: No implementation found for long com.autonavi.amap.mapcore.MapCore.nativeNewInstance(java.lang.String, java.lang.String) (tried Java_com_autonavi_amap_mapcore_MapCore_nativeNewInstance and Java_com_autonavi_amap_mapcore_MapCore_nativeNewInstance__Ljava_lang_String_2Ljava_lang_String_2)
at com.autonavi.amap.mapcore.MapCore.nativeNewInstance(Native Method)
at com.autonavi.amap.mapcore.MapCore.newMap(MapCore.java:83)
at com.amap.api.mapcore.util.c.m(AMapDelegateImp.java:590)
at com.amap.api.mapcore.util.c.<init>(AMapDelegateImp.java:322)
at com.amap.api.mapcore.util.c.<init>(AMapDelegateImp.java:301)
at com.amap.api.mapcore.util.k.<init>(AMapGLSurfaceView.java:27)
at com.amap.api.mapcore.util.k.<init>(AMapGLSurfaceView.java:21)
at com.amap.api.mapcore.util.ab.onCreateView(MapFragmentDelegateImp.java:133)
at com.amap.api.maps.MapView.onCreate(MapView.java:135)
at win.yulongsun.onehome_ipqc.ui.fragment.near.NearFragment.initView(NearFragment.java:83)
at win.yulongsun.lib_common.base.BaseChildFragment.onCreateView(BaseChildFragment.java:35)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
at android.support.v4.app.Fragment.performStart(Fragment.java:1996)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1102)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
at android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:2051)
at android.support.v4.app.FragmentController.dispatchStart(FragmentController.java:185)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:608)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1237)
at android.app.Activity.performStart(Activity.java:6268)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
3.解决
发现地图配置安装官方文档配置,所以没有问题。
在没有添加realm的情况下,地图使用正常,能正常显示。
添加realm后,报错,看log应该是cpp的问题。最后提交工单。
网友评论