赞
踩
当用高德地图集成到AndroidStaio的时候,根据高德提供的Demo
发生以下bug
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.AMapDelegateImp.ad(AMapDelegateImp.java:601)
at com.amap.api.mapcore.AMapDelegateImp.<init>(AMapDelegateImp.java:308)
at com.amap.api.mapcore.j.<init>(AMapGLSurfaceView.java:26)
at com.amap.api.mapcore.j.<init>(AMapGLSurfaceView.java:20)
at com.amap.api.mapcore.at.a(MapFragmentDelegateImp.java:129)
at com.amap.api.maps.MapView.onCreate(MapView.java:121)
at com.aotai.tech.MainActivity.onCreate(MainActivity.java:19)
at android.app.Activity.performCreate(Activity.java:6104)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1133)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2587)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2704)
at android.app.ActivityThread.access$800(ActivityThread.java:180)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1547)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:192)
at android.app.ActivityThread.main(ActivityThread.java:5818)
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:1021)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:816)
后来发现.so文件放在需要在app下jniLibs,并且需要设置多级别,如下图,解决我发生的问题
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。