安卓本地离线打包缺少zip4j,热更新报错
用PS C:> adb logcat -v time > crash.log指令看见输出日志
在离线打包工程添加implementation 'net.lingala.zip4j:zip4j:2.11.5'依赖不闪退了,安装成功
--------- beginning of crash
08-19 10:56:49.082 E/AndroidRuntime(23108): FATAL EXCEPTION: Thread-18
08-19 10:56:49.082 E/AndroidRuntime(23108): Process: com.kdwl.dazhong, PID: 23108
08-19 10:56:49.082 E/AndroidRuntime(23108): java.lang.NullPointerException: Attempt to read from null array
08-19 10:56:49.082 E/AndroidRuntime(23108): at io.dcloud.feature.pdr.RuntimeFeatureImpl$a.run(SourceFile:9)
08-19 11:02:17.292 E/AndroidRuntime(25104): FATAL EXCEPTION: Thread-18
08-19 11:02:17.292 E/AndroidRuntime(25104): Process: com.kdwl.dazhong, PID: 25104
08-19 11:02:17.292 E/AndroidRuntime(25104): java.lang.NullPointerException: Attempt to read from null array
08-19 11:02:17.292 E/AndroidRuntime(25104): at io.dcloud.feature.pdr.RuntimeFeatureImpl$a.run(SourceFile:9)
08-19 11:03:02.295 E/AndroidRuntime(26437): FATAL EXCEPTION: Thread-18
08-19 11:03:02.295 E/AndroidRuntime(26437): Process: com.kdwl.dazhong, PID: 26437
08-19 11:03:02.295 E/AndroidRuntime(26437): java.lang.NullPointerException: Attempt to read from null array
08-19 11:03:02.295 E/AndroidRuntime(26437): at io.dcloud.feature.pdr.RuntimeFeatureImpl$a.run(SourceFile:9)
08-19 11:06:04.588 E/AndroidRuntime(26945): FATAL EXCEPTION: Thread-18
08-19 11:06:04.588 E/AndroidRuntime(26945): Process: com.kdwl.dazhong, PID: 26945
08-19 11:06:04.588 E/AndroidRuntime(26945): java.lang.NullPointerException: Attempt to read from null array
08-19 11:06:04.588 E/AndroidRuntime(26945): at io.dcloud.feature.pdr.RuntimeFeatureImpl$a.run(SourceFile:9)
08-19 11:08:49.586 E/AndroidRuntime(28032): FATAL EXCEPTION: Thread-18
08-19 11:08:49.586 E/AndroidRuntime(28032): Process: com.kdwl.dazhong, PID: 28032
08-19 11:08:49.586 E/AndroidRuntime(28032): java.lang.NullPointerException: Attempt to read from null array
08-19 11:08:49.586 E/AndroidRuntime(28032): at io.dcloud.feature.pdr.RuntimeFeatureImpl$a.run(SourceFile:9)
08-20 10:16:55.089 E/AndroidRuntime( 5791): FATAL EXCEPTION: Thread-21
08-20 10:16:55.089 E/AndroidRuntime( 5791): Process: com.kdwl.dazhong, PID: 5791
08-20 10:16:55.089 E/AndroidRuntime( 5791): java.lang.NullPointerException: Attempt to read from null array
08-20 10:16:55.089 E/AndroidRuntime( 5791): at io.dcloud.feature.pdr.RuntimeFeatureImpl$a.run(SourceFile:9)
08-20 10:21:23.249 E/AndroidRuntime( 7415): FATAL EXCEPTION: Thread-26
08-20 10:21:23.249 E/AndroidRuntime( 7415): Process: com.kdwl.dazhong, PID: 7415
08-20 10:21:23.249 E/AndroidRuntime( 7415): java.lang.NullPointerException: Attempt to read from null array
08-20 10:21:23.249 E/AndroidRuntime( 7415): at io.dcloud.feature.pdr.RuntimeFeatureImpl$a.run(SourceFile:9)
08-21 08:40:48.072 E/AndroidRuntime(16440): FATAL EXCEPTION: process_operation
08-21 08:40:48.072 E/AndroidRuntime(16440): Process: com.kdwl.cwprovider, PID: 16440
08-21 08:40:48.072 E/AndroidRuntime(16440): java.lang.NoClassDefFoundError: Failed resolution of: Lnet/lingala/zip4j/ZipFile;
08-21 08:40:48.072 E/AndroidRuntime(16440): at io.dcloud.common.util.Zip4JUtil.upZipFileWithPassword(SourceFile:13)
08-21 08:40:48.072 E/AndroidRuntime(16440): at io.dcloud.debug.FileUtil.decompress(FileUtil.java:147)
08-21 08:40:48.072 E/AndroidRuntime(16440): at io.dcloud.debug.FileUtil.save(FileUtil.java:91)
08-21 08:40:48.072 E/AndroidRuntime(16440): at io.dcloud.debug.NetUtil.download(NetUtil.java:44)
08-21 08:40:48.072 E/AndroidRuntime(16440): at io.dcloud.debug.PullManager$OperationHandler.handleMessage(PullManager.java:511)
08-21 08:40:48.072 E/AndroidRuntime(16440): at android.os.Handler.dispatchMessage(Handler.java:112)
08-21 08:40:48.072 E/AndroidRuntime(16440): at android.os.Looper.loopOnce(Looper.java:288)
08-21 08:40:48.072 E/AndroidRuntime(16440): at android.os.Looper.loop(Looper.java:393)
08-21 08:40:48.072 E/AndroidRuntime(16440): at android.os.HandlerThread.run(HandlerThread.java:85)
08-21 08:40:48.072 E/AndroidRuntime(16440): Caused by: java.lang.ClassNotFoundException: Didn't find class "net.lingala.zip4j.ZipFile" on path: DexPathList[[zip file "/data/app/s4KjEAfzCQoEuaEz1Nj5rw==/com.kdwl.cwprovider-kafHxQi-00MGlaZ913DcGA==/base.apk"],nativeLibraryDirectories=[/data/app/s4KjEAfzCQoEuaEz1Nj5rw==/com.kdwl.cwprovider-kafHxQi-00MGlaZ913DcGA==/lib/arm64, /data/app/~~s4KjEAfzCQoEuaEz1Nj5rw==/com.kdwl.cwprovider-kafHxQi-00MGlaZ913DcGA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
08-21 08:40:48.072 E/AndroidRuntime(16440): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
08-21 08:40:48.072 E/AndroidRuntime(16440): at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
08-21 08:40:48.072 E/AndroidRuntime(16440): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-21 08:40:48.072 E/AndroidRuntime(16440): ... 9 more
08-21 08:42:22.430 E/AndroidRuntime(17196): FATAL EXCEPTION: process_operation
08-21 08:42:22.430 E/AndroidRuntime(17196): Process: com.kdwl.cwprovider, PID: 17196
08-21 08:42:22.430 E/AndroidRuntime(17196): java.lang.NoClassDefFoundError: Failed resolution of: Lnet/lingala/zip4j/ZipFile;
08-21 08:42:22.430 E/AndroidRuntime(17196): at io.dcloud.common.util.Zip4JUtil.upZipFileWithPassword(SourceFile:13)
08-21 08:42:22.430 E/AndroidRuntime(17196): at io.dcloud.debug.FileUtil.decompress(FileUtil.java:147)
08-21 08:42:22.430 E/AndroidRuntime(17196): at io.dcloud.debug.FileUtil.save(FileUtil.java:91)
08-21 08:42:22.430 E/AndroidRuntime(17196): at io.dcloud.debug.NetUtil.download(NetUtil.java:44)
08-21 08:42:22.430 E/AndroidRuntime(17196): at io.dcloud.debug.PullManager$OperationHandler.handleMessage(PullManager.java:511)
08-21 08:42:22.430 E/AndroidRuntime(17196): at android.os.Handler.dispatchMessage(Handler.java:112)
08-21 08:42:22.430 E/AndroidRuntime(17196): at android.os.Looper.loopOnce(Looper.java:288)
08-21 08:42:22.430 E/AndroidRuntime(17196): at android.os.Looper.loop(Looper.java:393)
08-21 08:42:22.430 E/AndroidRuntime(17196): at android.os.HandlerThread.run(HandlerThread.java:85)
08-21 08:42:22.430 E/AndroidRuntime(17196): Caused by: java.lang.ClassNotFoundException: Didn't find class "net.lingala.zip4j.ZipFile" on path: DexPathList[[zip file "/data/app/s4KjEAfzCQoEuaEz1Nj5rw==/com.kdwl.cwprovider-kafHxQi-00MGlaZ913DcGA==/base.apk"],nativeLibraryDirectories=[/data/app/s4KjEAfzCQoEuaEz1Nj5rw==/com.kdwl.cwprovider-kafHxQi-00MGlaZ913DcGA==/lib/arm64, /data/app/~~s4KjEAfzCQoEuaEz1Nj5rw==/com.kdwl.cwprovider-kafHxQi-00MGlaZ913DcGA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
08-21 08:42:22.430 E/AndroidRuntime(17196): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
08-21 08:42:22.430 E/AndroidRuntime(17196): at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
08-21 08:42:22.430 E/AndroidRuntime(17196): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-21 08:42:22.430 E/AndroidRuntime(17196): ... 9 more
08-21 08:46:48.951 E/AndroidRuntime(18737): FATAL EXCEPTION: Thread-21
08-21 08:46:48.951 E/AndroidRuntime(18737): Process: com.kdwl.cwprovider, PID: 18737
08-21 08:46:48.951 E/AndroidRuntime(18737): java.lang.NullPointerException: Attempt to read from null array
08-21 08:46:48.951 E/AndroidRuntime(18737): at io.dcloud.feature.pdr.RuntimeFeatureImpl$a.run(SourceFile:9)
08-21 08:49:10.801 E/AndroidRuntime(21234): FATAL EXCEPTION: process_operation
08-21 08:49:10.801 E/AndroidRuntime(21234): Process: com.kdwl.cwprovider, PID: 21234
08-21 08:49:10.801 E/AndroidRuntime(21234): java.lang.NoClassDefFoundError: Failed resolution of: Lnet/lingala/zip4j/ZipFile;
08-21 08:49:10.801 E/AndroidRuntime(21234): at io.dcloud.common.util.Zip4JUtil.upZipFileWithPassword(SourceFile:13)
08-21 08:49:10.801 E/AndroidRuntime(21234): at io.dcloud.debug.FileUtil.decompress(FileUtil.java:147)
08-21 08:49:10.801 E/AndroidRuntime(21234): at io.dcloud.debug.FileUtil.save(FileUtil.java:91)
08-21 08:49:10.801 E/AndroidRuntime(21234): at io.dcloud.debug.NetUtil.download(NetUtil.java:44)
08-21 08:49:10.801 E/AndroidRuntime(21234): at io.dcloud.debug.PullManager$OperationHandler.handleMessage(PullManager.java:511)
08-21 08:49:10.801 E/AndroidRuntime(21234): at android.os.Handler.dispatchMessage(Handler.java:112)
08-21 08:49:10.801 E/AndroidRuntime(21234): at android.os.Looper.loopOnce(Looper.java:288)
08-21 08:49:10.801 E/AndroidRuntime(21234): at android.os.Looper.loop(Looper.java:393)
08-21 08:49:10.801 E/AndroidRuntime(21234): at android.os.HandlerThread.run(HandlerThread.java:85)
08-21 08:49:10.801 E/AndroidRuntime(21234): Caused by: java.lang.ClassNotFoundException: Didn't find class "net.lingala.zip4j.ZipFile" on path: DexPathList[[zip file "/data/app/3WJgQZ2h9EtVVtKkMX7vtA==/com.kdwl.cwprovider-KO5-dnzPg_yGovuPrFh_7Q==/base.apk"],nativeLibraryDirectories=[/data/app/3WJgQZ2h9EtVVtKkMX7vtA==/com.kdwl.cwprovider-KO5-dnzPg_yGovuPrFh_7Q==/lib/arm64, /data/app/~~3WJgQZ2h9EtVVtKkMX7vtA==/com.kdwl.cwprovider-KO5-dnzPg_yGovuPrFh_7Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
08-21 08:49:10.801 E/AndroidRuntime(21234): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
08-21 08:49:10.801 E/AndroidRuntime(21234): at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
08-21 08:49:10.801 E/AndroidRuntime(21234): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-21 08:49:10.801 E/AndroidRuntime(21234): ... 9 more
08-21 08:50:03.781 E/AndroidRuntime(21444): FATAL EXCEPTION: process_operation
08-21 08:50:03.781 E/AndroidRuntime(21444): Process: com.kdwl.cwprovider, PID: 21444
08-21 08:50:03.781 E/AndroidRuntime(21444): java.lang.NoClassDefFoundError: Failed resolution of: Lnet/lingala/zip4j/ZipFile;
08-21 08:50:03.781 E/AndroidRuntime(21444): at io.dcloud.common.util.Zip4JUtil.upZipFileWithPassword(SourceFile:13)
08-21 08:50:03.781 E/AndroidRuntime(21444): at io.dcloud.debug.FileUtil.decompress(FileUtil.java:147)
08-21 08:50:03.781 E/AndroidRuntime(21444): at io.dcloud.debug.FileUtil.save(FileUtil.java:91)
08-21 08:50:03.781 E/AndroidRuntime(21444): at io.dcloud.debug.NetUtil.download(NetUtil.java:44)
08-21 08:50:03.781 E/AndroidRuntime(21444): at io.dcloud.debug.PullManager$OperationHandler.handleMessage(PullManager.java:511)
08-21 08:50:03.781 E/AndroidRuntime(21444): at android.os.Handler.dispatchMessage(Handler.java:112)
08-21 08:50:03.781 E/AndroidRuntime(21444): at android.os.Looper.loopOnce(Looper.java:288)
08-21 08:50:03.781 E/AndroidRuntime(21444): at android.os.Looper.loop(Looper.java:393)
08-21 08:50:03.781 E/AndroidRuntime(21444): at android.os.HandlerThread.run(HandlerThread.java:85)
08-21 08:50:03.781 E/AndroidRuntime(21444): Caused by: java.lang.ClassNotFoundException: Didn't find class "net.lingala.zip4j.ZipFile" on path: DexPathList[[zip file "/data/app/3WJgQZ2h9EtVVtKkMX7vtA==/com.kdwl.cwprovider-KO5-dnzPg_yGovuPrFh_7Q==/base.apk"],nativeLibraryDirectories=[/data/app/3WJgQZ2h9EtVVtKkMX7vtA==/com.kdwl.cwprovider-KO5-dnzPg_yGovuPrFh_7Q==/lib/arm64, /data/app/~~3WJgQZ2h9EtVVtKkMX7vtA==/com.kdwl.cwprovider-KO5-dnzPg_yGovuPrFh_7Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
08-21 08:50:03.781 E/AndroidRuntime(21444): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
08-21 08:50:03.781 E/AndroidRuntime(21444): at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
08-21 08:50:03.781 E/AndroidRuntime(21444): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-21 08:50:03.781 E/AndroidRuntime(21444): ... 9 more