RN在android 6.0真机上崩溃



  • 我的项目接入了热更新,RN在android 6.0的真机上崩溃了,在其他版本的真机上运行正常,报错信息如下:
    09-20 16:02:31.350 29993-29993/? I/art: Late-enabling -Xcheck:jni
    09-20 16:02:31.371 29993-30004/? D/SmartContainerConfig: Configured features :
    09-20 16:02:31.373 29993-29999/? I/art: Debugger is no longer active
    09-20 16:02:31.442 29993-29993/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
    09-20 16:02:31.483 29993-30011/? D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
    09-20 16:02:31.532 29993-30011/? I/Adreno: QUALCOMM build : 8a469a9, Ic3eab96f3e
    Build Date : 06/08/16
    OpenGL ES Shader Compiler Version: XE031.08.00.00
    Local Branch :
    Remote Branch :
    Remote Branch :
    Reconstruct Branch :
    09-20 16:02:31.536 29993-30011/? I/OpenGLRenderer: Initialized EGL, version 1.4
    09-20 16:02:32.513 29993-29993/com.xydd.myreactnative D/AndroidRuntime: Shutting down VM

                                                                        --------- beginning of crash
    

    09-20 16:02:32.513 29993-29993/com.xydd.myreactnative E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.xydd.myreactnative, PID: 29993
    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.xydd.myreactnative-2/base.apk"],nativeLibraryDirectories=[/data/app/com.xydd.myreactnative-2/lib/arm64, /data/app/com.xydd.myreactnative-2/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "librnupdate.so"
    at java.lang.Runtime.loadLibrary(Runtime.java:367)
    at java.lang.System.loadLibrary(System.java:1076)
    at cn.reactnative.modules.update.DownloadTask.<clinit>(DownloadTask.java:46)
    at cn.reactnative.modules.update.UpdateContext.clearUp(UpdateContext.java:213)
    at cn.reactnative.modules.update.UpdateContext.<init>(UpdateContext.java:38)
    at cn.reactnative.modules.update.UpdateContext.getBundleUrl(UpdateContext.java:154)
    at com.xydd.myreactnative.MainApplication$1.getJSBundleFile(MainApplication.java:37)
    at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:73)
    at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:38)
    at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:107)
    at android.app.Activity.performCreate(Activity.java:6301)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1121)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2455)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2562)
    at android.app.ActivityThread.access$900(ActivityThread.java:165)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:160)
    at android.app.ActivityThread.main(ActivityThread.java:5610)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
    在各个android版本的模拟器上我也运行过,没有问题,就是在android 6.0真机上崩了,我感觉是热更新UpdateContext的问题,但是不知道如何解决,有人遇到过这个问题么?


登录后回复