uni-app android 离线打包,高德地图(nvue)功能在hbulidx真机运行正常,但打包后出现白屏,且Android studio真机运行报错
uni-app android 离线打包,高德地图(nvue)功能在hbulidx真机运行正常,但打包后出现白屏,且Android studio真机运行报错
android 离线打包,高德地图(nvue),hbulidx真机运行正常,打包白屏,Android studio真机运行报错:
E/com.hxss.hxcrm
: No implementation found for void com.autonavi.base.ae.gmap.GLMapEngine.nativeInitParam(java.lang.String, java.lang.String, java.lang.String, java.lang.String) (tried Java_com_autonavi_base_ae_gmap_GLMapEngine_nativeInitParam and Java_com_autonavi_base_ae_gmap_GLMapEngine_nativeInitParamLjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2)E/com.hxss.hxcrm
: No implementation found for void com.autonavi.base.amap.mapcore.AMapNativeGlOverlayLayer.nativeCreate(long) (tried Java_com_autonavi_base_amap_mapcore_AMapNativeGlOverlayLayer_nativeCreate and Java_com_autonavi_base_amap_mapcore_AMapNativeGlOverlayLayer_nativeCreateJ)E/com.hxss.hxcrm
: No implementation found for void com.autonavi.base.ae.gmap.GLMapEngine.nativeInitParam(java.lang.String, java.lang.String, java.lang.String, java.lang.String) (tried Java_com_autonavi_base_ae_gmap_GLMapEngine_nativeInitParam and Java_com_autonavi_base_ae_gmap_GLMapEngine_nativeInitParamLjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2)D/HwCustConnectivityManagerImpl
: isBlockNetworkRequestByNonAis, INVALID_SUBSCRIPTION_IDE/com.hxss.hxcrm
: No implementation found for void com.autonavi.base.amap.mapcore.AMapNativeGlOverlayLayer.nativeCreate(long) (tried Java_com_autonavi_base_amap_mapcore_AMapNativeGlOverlayLayer_nativeCreate and Java_com_autonavi_base_amap_mapcore_AMapNativeGlOverlayLayer_nativeCreateJ)E/com.hxss.hxcrm
: No implementation found for float com.autonavi.base.ae.gmap.GLMapState.nativeCalMapZoomScalefactor(int, int, float) (tried Java_com_autonavi_base_ae_gmap_GLMapState_nativeCalMapZoomScalefactor and Java_com_autonavi_base_ae_gmap_GLMapState_nativeCalMapZoomScalefactorIIF)W/System.err
: java.lang.UnsatisfiedLinkError: No implementation found for float com.autonavi.base.ae.gmap.GLMapState.nativeCalMapZoomScalefactor(int, int, float) (tried Java_com_autonavi_base_ae_gmap_GLMapState_nativeCalMapZoomScalefactor and Java_com_autonavi_base_ae_gmap_GLMapState_nativeCalMapZoomScalefactorIIF)- at com.autonavi.base.ae.gmap.GLMapState.nativeCalMapZoomScalefactor(Native Method)
- at com.autonavi.base.ae.gmap.GLMapState.calMapZoomScalefactor(GLMapState.java:257)
- at com.amap.api.col.3s.b.a(AMapDelegateImp.java:3557)
- at com.amap.api.col.3s.b.changeSurface(AMapDelegateImp.java:3376)
- at com.amap.api.col.3s.b.changeSurface(AMapDelegateImp.java:6533)
- at com.autonavi.base.ae.gmap.GLMapRender.onSurfaceChanged(GLMapRender.java:235)
- at com.amap.api.col.3s.m$i.m(GLTextureView.java:1503)
- at com.amap.api.col.3s.m$i.run(GLTextureView.java:1203)
W/Gralloc3
: allocator 3.x is not supportedE/ion
: ioctl c0044901 failed with code -1: Invalid argument
更多关于uni-app android 离线打包,高德地图(nvue)功能在hbulidx真机运行正常,但打包后出现白屏,且Android studio真机运行报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
看着是so没找到,导入map-amap-release.aar。
更多关于uni-app android 离线打包,高德地图(nvue)功能在hbulidx真机运行正常,但打包后出现白屏,且Android studio真机运行报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
map-amap-release.aar 这个包引入了的
这个包引入了的
你这是什么版本sdk?你找一下有没有amap-libs-release.aar,把这个导进来。
回复 DCloud_Android_THB: amap-libs-release.aar导入了,现在报错: Process: com.hxss.hxcrm, PID: 20858 java.lang.NoSuchMethodError: No static method getInstance()Lio/dcloud/feature/weex/adapter/FrescoLoadUtil; in class Lio/dcloud/feature/weex/adapter/FrescoLoadUtil; or its super classes (declaration of ‘io.dcloud.feature.weex.adapter.FrescoLoadUtil’ appears in /data/app/com.hxss.hxcrm-rMfypTf7bQJ852w6f4Vxbg==/base.apk!classes3.dex) at io.dcloud.feature.weex_amap.adapter.Marker.WXMarker.loadImageToIcon(WXMarker.java:205) at io.dcloud.feature.weex_amap.adapter.Marker.WXMarker.setIconInfo(WXMarker.java:159) at io.dcloud.feature.weex_amap.adapter.Marker.WXMarker.createMarkerOptions(WXMarker.java:76) at io.dcloud.feature.weex_amap.adapter.Marker.WXMarker.<init>(WXMarker.java:41) at io.dcloud.feature.weex_amap.adapter.Marker.MarkerMgr.setMarkers(MarkerMgr.java:48) at io.dcloud.feature.weex_amap.component.WXAMapViewComponent$23.execute(WXAMapViewComponent.java:645) at io.dcloud.feature.weex_amap.component.WXAMapViewComponent.execPaddingTasks(WXAMapViewComponent.java:1230) at io.dcloud.feature.weex_amap.component.WXAMapViewComponent.access$400(WXAMapViewComponent.java:64) at io.dcloud.feature.weex_amap.component.WXAMapViewComponent$4$1.run(WXAMapViewComponent.java:242) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
回复 ZHAOUNIQUE: 留一下你的qq,我给你看看。
回复 DCloud_Android_THB: 我用最新的sdk重新搞了离线打包,已经好了,谢谢
回复 ZHAOUNIQUE:
这个问题主要是高德地图SDK的so库文件没有正确打包导致的。以下是解决方案:
- 检查高德地图SDK的so文件是否完整:
- 确保在
libs
目录下包含了所有架构的so文件(armeabi-v7a、arm64-v8a等) - 检查
build.gradle
中是否配置了正确的ndk过滤:
android {
defaultConfig {
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
}
}
- 检查so文件是否被打包到APK中:
- 确保在
app/src/main/jniLibs
目录下放置了so文件 - 或者在
build.gradle
中配置了正确的sourceSets:
android {
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
}