最近几天都在尝试obb分包 已经试到吐血 依照网络教程(文章地址:https://juejin.im/post/5ae3431bf265da0b8d41aa75) ~ 所有东西都写了 测试时资源也读到了 但就是有部分资源无法读取 ~ 真是找不到原因了 ~ obb包是放在/Android/obb/App包名/ 开始怀疑解压缩问题 我甚至不打包obb 直接将资源复制到 /Android/data/App包名/ 下 也是一样到部分资源无法获取崩溃 最后也测试了 将资源直接解压到 热更新目录下 js 也在mian 直接一开始设置了热更新目录 最终到结果依旧没有改变 各种资源读取不到 或者损坏 但目录下是都存在 最让人无法理解的就是为什么部分资源是读取到的 因为我是将整个res都当作obb包 如果读取不到 登陆界面背景都不会显示 apk内只有代码
崩溃信息如下 游戏内资源时常显示错乱然后读取失败崩溃 (我使用都是creator 1.10.3版本 热更新已经做了 功能都是正常的)
2019-07-03 11:04:43.166 2013-2178/? D/QcrilMsgTunnelSocket: readRilMessage: Buffer = [B@cf778bd HexData = [010000000404000011000000514f454d484f4f4bef0308000100000003]
2019-07-03 11:04:43.167 2013-2178/? D/QcrilMsgTunnelSocket: Rcvd UNSOL response with 28 bytes data for SUB0
2019-07-03 11:04:43.167 2013-2178/? D/QcrilMsgTunnelSocket: Response ID 525295 is not served in this process.
2019-07-03 11:04:43.167 2013-2178/? D/QcrilMsgTunnelSocket: To broadcast an Intent via the notifier to external apps
2019-07-03 11:04:43.167 2013-2013/? D/QcrilMsgTunnelIfaceManager: handleMessage what = 0
2019-07-03 11:04:43.171 2028-2028/? D/QC_RIL_OEM_HOOK: Received Broadcast Intent ACTION_UNSOL_RESPONSE_OEM_HOOK_RAW
2019-07-03 11:04:43.171 2028-2028/? D/QC_RIL_OEM_HOOK: Oem ID in QCRILHOOK UNSOL RESP is QOEMHOOK
2019-07-03 11:04:43.251 8723-8806/? D/jswrapper: JS: Create unpacker 026dfb16b for 73pwRq/RNLG4vxNw4UOMBg
2019-07-03 11:04:43.288 8723-8723/? D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
2019-07-03 11:04:43.301 8723-8806/? D/jswrapper: JS: Create unpacker 0661f702e for beFI+3krdIxJN+vahi/WQ0
2019-07-03 11:04:43.319 1467-1554/? I/ActivityManager: Displayed com.igg.android.sugarshuffle/org.cocos2dx.javascript.AppActivity: +3s372ms (total +3s796ms)
2019-07-03 11:04:43.319 2678-2873/? I/WtEventController: AM_Launch: 30009 TAG: 840704
2019-07-03 11:04:43.319 1467-1554/? I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{de8248b u0 com.igg.android.sugarshuffle/org.cocos2dx.javascript.AppActivity t603} time:904902
2019-07-03 11:04:43.319 2678-2873/? I/WtEventController: AM_Launch: 30009 TAG: 239299583
2019-07-03 11:04:43.319 2678-2873/? I/WtEventController: AM_Launch: 30009 TAG: 25174048
2019-07-03 11:04:43.319 2678-2873/? I/WtEventController: AM_Launch: 30009 TAG: 8224
2019-07-03 11:04:43.319 2678-2873/? I/WtEventController: AM_Launch: 30009 TAG: 4096
2019-07-03 11:04:43.319 2678-2873/? I/WtEventController: AM_Launch: 30009 TAG: 10848
2019-07-03 11:04:43.319 2678-2873/? I/WtEventController: AM_Launch: 30009 TAG: 1048576
2019-07-03 11:04:43.341 1467-2978/? D/ActivityTrigger: ActivityTrigger activityStopTrigger
2019-07-03 11:04:43.343 1467-2978/? D/ActivityTrigger: ActivityTrigger activityStopTrigger
2019-07-03 11:04:43.346 8723-8788/? W/FirebaseRemoteConfig: No value of type ‘String’ exists for parameter key ‘sessions_feature_enabled’.
2019-07-03 11:04:43.346 8723-8723/? W/FirebaseRemoteConfig: No value of type ‘String’ exists for parameter key ‘sessions_max_length_minutes’.
2019-07-03 11:04:43.362 8723-8793/? W/GooglePlayServicesUtil: Google Play services out of date. Requires 11925000 but found 10084230
2019-07-03 11:04:43.363 1467-7548/? I/WindowManager: Destroying surface Surface(name=com.miui.home/com.miui.home.launcher.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2052 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:903 com.android.server.wm.WindowState.destroyOrSaveSurface:2125 com.android.server.wm.AppWindowToken.destroySurfaces:369 com.android.server.wm.AppWindowToken.notifyAppStopped:397 com.android.server.wm.WindowManagerService.notifyAppStopped:4674 com.android.server.am.ActivityStack.activityStoppedLocked:1314 com.android.server.am.ActivityManagerService.activityStopped:7351
2019-07-03 11:04:43.372 1467-1723/? D/LockBoost: tid=1723, prevPriority=0
2019-07-03 11:04:43.372 1467-1723/? D/LockBoost: thread tid=1723 priority is boosted to -2
2019-07-03 11:04:43.374 1467-1723/? D/LockBoost: thread tid=1723 priority is reset to 0
2019-07-03 11:04:43.377 1821-1821/? D/StatusBar: onNotificationPosted: Key: 0|com.igg.android.sugarshuffle|10436|null|10314 GroupKey: 0|com.igg.android.sugarshuffle|10436|null|10314 Connected: true
2019-07-03 11:04:43.377 1821-1821/? D/StatusBar: GroupChild: false IsGroupSummary: false IsUpdate: true hasIcon: true
2019-07-03 11:04:43.378 1821-1821/? D/PhoneStatusBar: updateNotification pkg=com.igg.android.sugarshuffle;id=10436
2019-07-03 11:04:43.391 8723-8806/? D/jswrapper: JS: LoadScene 73pwRq/RNLG4vxNw4UOMBg: 142.39200000000028ms
2019-07-03 11:04:43.396 8723-8806/? D/jswrapper: JS: I: 3.9869999999996253ms
2019-07-03 11:04:43.397 8723-8806/? D/jswrapper: JS: AR: 1.1160000000004402ms
2019-07-03 11:04:43.398 8723-8806/? D/jswrapper: JS: D: 0.32999999999992724ms
2019-07-03 11:04:43.398 8723-8806/? D/jswrapper: JS: Success to load scene: db://assets/logo.fire
2019-07-03 11:04:43.398 8723-8806/? D/jswrapper: JS: AP: 0.018999999999778083ms
2019-07-03 11:04:43.413 8723-8806/? D/jswrapper: JS: A: 14.38299999999981ms
2019-07-03 11:04:43.421 8723-8806/? D/jswrapper: JS: 高度1280
2019-07-03 11:04:43.438 8723-8754/? W/GooglePlayServicesUtil: Google Play services out of date. Requires 12451000 but found 10084230
2019-07-03 11:04:43.486 8723-8754/? E/ActivityThread: Failed to find provider info for com.google.android.gms.phenotype
2019-07-03 11:04:43.508 1467-1554/? I/WindowManager: Destroying surface Surface(name=Starting com.igg.android.sugarshuffle) called by com.android.server.wm.WindowStateAnimator.destroySurface:2052 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:903 com.android.server.wm.WindowState.destroyOrSaveSurface:2125 com.android.server.wm.AppWindowToken.destroySurfaces:369 com.android.server.wm.WindowStateAnimator.finishExit:566 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:492 com.android.server.wm.WindowAnimator.updateWindowsLocked:312 com.android.server.wm.WindowAnimator.animateLocked:727
2019-07-03 11:04:43.662 4906-5454/? W/LocalConnector: Cannot connect the wmserver-data-reciever-84792
java.io.IOException: Connection refused
at android.net.LocalSocketImpl.connectLocal(Native Method)
at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:292)
at android.net.LocalSocket.connect(LocalSocket.java:131)
at com.miui.wmsvc.b.b.a$a.run(Unknown Source)
at java.lang.Thread.run(Thread.java:760)
2019-07-03 11:04:43.853 8723-8780/? W/FirebaseRemoteConfig: No value of type ‘String’ exists for parameter key ‘sessions_max_length_minutes’.
2019-07-03 11:04:43.853 8723-8788/? W/FirebaseRemoteConfig: No value of type ‘String’ exists for parameter key ‘sessions_feature_enabled’.
2019-07-03 11:04:43.870 8723-8793/? W/GooglePlayServicesUtil: Google Play services out of date. Requires 11925000 but found 10084230
2019-07-03 11:04:43.881 1467-1723/? D/LockBoost: tid=1723, prevPriority=0
2019-07-03 11:04:43.882 1467-1723/? D/LockBoost: thread tid=1723 priority is boosted to -2
2019-07-03 11:04:43.886 1467-1723/? D/LockBoost: thread tid=1723 priority is reset to 0
2019-07-03 11:04:43.891 1821-1821/? D/StatusBar: onNotificationPosted: Key: 0|com.igg.android.sugarshuffle|10436|null|10314 GroupKey: 0|com.igg.android.sugarshuffle|10436|null|10314 Connected: true
2019-07-03 11:04:43.891 1821-1821/? D/StatusBar: GroupChild: false IsGroupSummary: false IsUpdate: true hasIcon: true
2019-07-03 11:04:43.894 1821-1821/? D/PhoneStatusBar: updateNotification pkg=com.igg.android.sugarshuffle;id=10436
2019-07-03 11:04:43.976 1775-1775/? D/wpa_supplicant: wlan0: Control interface command ‘SIGNAL_POLL’
2019-07-03 11:04:43.993 1821-1821/? D/StatusBar.NetworkController: slot=-10;action=android.net.wifi.RSSI_CHANGED
2019-07-03 11:04:44.121 8723-8780/? W/FirebaseRemoteConfig: No value of type ‘String’ exists for parameter key ‘sessions_max_length_minutes’.
2019-07-03 11:04:44.122 8723-8788/? W/FirebaseRemoteConfig: No value of type ‘String’ exists for parameter key ‘sessions_feature_enabled’.
2019-07-03 11:04:44.143 8723-8793/? W/GooglePlayServicesUtil: Google Play services out of date. Requires 11925000 but found 10084230
2019-07-03 11:04:44.159 1467-1723/? D/LockBoost: tid=1723, prevPriority=0
2019-07-03 11:04:44.159 1467-1723/? D/LockBoost: thread tid=1723 priority is boosted to -2
2019-07-03 11:04:44.163 1467-1723/? D/LockBoost: thread tid=1723 priority is reset to 0
2019-07-03 11:04:44.169 1821-1821/? D/StatusBar: onNotificationPosted: Key: 0|com.igg.android.sugarshuffle|10436|null|10314 GroupKey: 0|com.igg.android.sugarshuffle|10436|null|10314 Connected: true
2019-07-03 11:04:44.169 1821-1821/? D/StatusBar: GroupChild: false IsGroupSummary: false IsUpdate: true hasIcon: true
2019-07-03 11:04:44.173 1821-1821/? D/PhoneStatusBar: updateNotification pkg=com.igg.android.sugarshuffle;id=10436
2019-07-03 11:04:44.664 4906-5454/? W/LocalConnector: Cannot connect the wmserver-data-reciever-84792
java.io.IOException: Connection refused
at android.net.LocalSocketImpl.connectLocal(Native Method)
at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:292)
at android.net.LocalSocket.connect(LocalSocket.java:131)
at com.miui.wmsvc.b.b.a$a.run(Unknown Source)
at java.lang.Thread.run(Thread.java:760)
2019-07-03 11:04:44.709 856-856/? I/cnss-daemon: RTM_NEWROUTE Indication
2019-07-03 11:04:45.015 856-856/? I/cnss-daemon: RTM_NEWROUTE Indication
2019-07-03 11:04:45.140 8840-8840/? D/GpuMonitor: gpu snapshot monitor boot up…
2019-07-03 11:04:45.141 8840-8840/? E/GpuMonitor: fital error, can not mkdir:/sdcard/MIUI/debug_log/common, errno:13
2019-07-03 11:04:45.131 8840-8840/? W/gpu_monitor: type=1400 audit(0.0:914): avc: denied { search } for name="/" dev=“sdcardfs” ino=1081345 scontext=u:r:gpumonitor:s0 tcontext=u:object_r:sdcardfs:s0 tclass=dir permissive=0
2019-07-03 11:04:45.131 8840-8840/? W/gpu_monitor: type=1400 audit(0.0:915): avc: denied { search } for name="/" dev=“sdcardfs” ino=1081345 scontext=u:r:gpumonitor:s0 tcontext=u:object_r:sdcardfs:s0 tclass=dir permissive=0
2019-07-03 11:04:45.443 8723-8806/? D/jswrapper: JS: Create unpacker 03232db21 for 1709cNzZNHX4d2WOSQRqVD
2019-07-03 11:04:45.589 8723-8806/? D/jswrapper: JS: Create unpacker 0fdcafc59 for 12zldOaAxKA7AicMD35lVh
2019-07-03 11:04:45.594 8723-8806/? D/jswrapper: JS: Create unpacker 012a7836e for 7c3+y3OdFP5Kfbf6xxgNUn
2019-07-03 11:04:45.595 8723-8806/? D/jswrapper: JS: Create unpacker 0d65800bb for 426OxI1oZOb5htynWmUDSl
2019-07-03 11:04:45.638 8723-8824/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 8824 (GLThread 465)
2019-07-03 11:04:45.650 8723-8806/? D/jswrapper: JS: Create unpacker 03b269fe4 for 43TGNlnilDgbziWf28Ujx5
2019-07-03 11:04:45.670 4906-5454/? W/LocalConnector: Cannot connect the wmserver-data-reciever-84792
java.io.IOException: Connection refused
at android.net.LocalSocketImpl.connectLocal(Native Method)
at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:292)
at android.net.LocalSocket.connect(LocalSocket.java:131)
at com.miui.wmsvc.b.b.a$a.run(Unknown Source)
at java.lang.Thread.run(Thread.java:760)
2019-07-03 11:04:45.741 8841-8841/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-07-03 11:04:45.741 8841-8841/? A/DEBUG: Build fingerprint: ‘Xiaomi/gemini/gemini:7.0/NRD90M/V9.5.4.0.NAACNFA:user/release-keys’
2019-07-03 11:04:45.741 8841-8841/? A/DEBUG: Revision: ‘0’
2019-07-03 11:04:45.742 8841-8841/? A/DEBUG: ABI: ‘arm64’
2019-07-03 11:04:45.742 8841-8841/? A/DEBUG: pid: 8723, tid: 8824, name: GLThread 465 >>> com.igg.android.sugarshuffle <<<
2019-07-03 11:04:45.742 8841-8841/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2019-07-03 11:04:45.742 8841-8841/? A/DEBUG: x0 0000007f3b382c00 x1 0000000000000000 x2 0000000000000000 x3 0000000000000000
2019-07-03 11:04:45.742 8841-8841/? A/DEBUG: x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 00000000912f3f88
2019-07-03 11:04:45.742 8841-8841/? A/DEBUG: x8 0000000000004000 x9 0000000000000001 x10 0000000000004002 x11 0000000000000000
2019-07-03 11:04:45.742 8841-8841/? A/DEBUG: x12 00000000b6948b86 x13 000000000a3b67b5 x14 0000000000000002 x15 2e8ba2e8ba2e8ba3
2019-07-03 11:04:45.742 8841-8841/? A/DEBUG: x16 0000007f80404258 x17 0000007f8035dc68 x18 0000007f3b1bf8e0 x19 0000007f3b136180
2019-07-03 11:04:45.743 8841-8841/? A/DEBUG: x20 0000000000004000 x21 00000000000c4000 x22 0000000000003fff x23 0000007f3b136188
2019-07-03 11:04:45.743 8841-8841/? A/DEBUG: x24 00000000fffffffd x25 0000000000004000 x26 0000000000000001 x27 0000007f38bef650
2019-07-03 11:04:45.743 8841-8841/? A/DEBUG: x28 0000000000000001 x29 0000007f34a680c0 x30 0000007f5d6a0d90
2019-07-03 11:04:45.743 8841-8841/? A/DEBUG: sp 0000007f34a680c0 pc 0000007f5d6a0ea8 pstate 0000000020000000
2019-07-03 11:04:45.763 8841-8841/? A/DEBUG: backtrace:
2019-07-03 11:04:45.763 8841-8841/? A/DEBUG: #00 pc 0000000001194ea8 /data/app/com.igg.android.sugarshuffle-1/lib/arm64/libcocos2djs.so (_ZN7cocos2d18unzReadCurrentFileEPvS0_j+532)
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #01 pc 0000000001165e94 /data/app/com.igg.android.sugarshuffle-1/lib/arm64/libcocos2djs.so (_ZN7cocos2d7ZipFile11getFileDataERKSsPNS_15ResizableBufferE+284)
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #02 pc 00000000005126a8 /data/app/com.igg.android.sugarshuffle-1/lib/arm64/libcocos2djs.so (_ZN7cocos2d16FileUtilsAndroid11getContentsERKSsPNS_15ResizableBufferE+340)
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #03 pc 000000000111aedc /data/app/com.igg.android.sugarshuffle-1/lib/arm64/libcocos2djs.so (_ZN7cocos2d9FileUtils15getDataFromFileERKSs+92)
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #04 pc 00000000007178e0 /data/app/com.igg.android.sugarshuffle-1/lib/arm64/libcocos2djs.so
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #05 pc 0000000001156764 /data/app/com.igg.android.sugarshuffle-1/lib/arm64/libcocos2djs.so
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #06 pc 0000000001156b9c /data/app/com.igg.android.sugarshuffle-1/lib/arm64/libcocos2djs.so
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #07 pc 0000000001391ad8 /data/app/com.igg.android.sugarshuffle-1/lib/arm64/libcocos2djs.so
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #08 pc 00000000000682cc /system/lib64/libc.so (_ZL15__pthread_startPv+196)
2019-07-03 11:04:45.764 8841-8841/? A/DEBUG: #09 pc 000000000001dca8 /system/lib64/libc.so (__start_thread+16)
2019-07-03 11:04:46.140 8842-8842/? I/subsystem_ramdump: Usage:./system/bin/subsystem_ramdump [arg1] [arg2] [arg3]
2019-07-03 11:04:46.131 8842-8842/? W/subsystem_ramdu: type=1400 audit(0.0:916): avc: denied { search } for name="/" dev=“sdcardfs” ino=1081345 scontext=u:r:subsystem_ramdump:s0 tcontext=u:object_r:sdcardfs:s0 tclass=dir permissive=0
2019-07-03 11:04:46.131 8842-8842/? W/subsystem_ramdu: type=1400 audit(0.0:917): avc: denied { search } for name="/" dev=“sdcardfs” ino=1081345 scontext=u:r:subsystem_ramdump:s0 tcontext=u:object_r:sdcardfs:s0 tclass=dir permissive=0
2019-07-03 11:04:46.140 8842-8842/? I/subsystem_ramdump: [arg1]: (1/2) Ramdump location: 1: eMMC: /data/ramdump or 2: SD card: /sdcard/ramdump
2019-07-03 11:04:46.140 8842-8842/? I/subsystem_ramdump: [arg2]: (1/0) 1: Enable RPM log / 0: Disable RPM log
2019-07-03 11:04:46.140 8842-8842/? I/subsystem_ramdump: [arg3]: (1/0) 1: Enable qdss ramdump / 0: Disable qdss ramdump
2019-07-03 11:04:46.141 8842-8842/? E/subsystem_ramdump: Directory /sdcard/ramdump does not exist
2019-07-03 11:04:46.141 8842-8842/? I/subsystem_ramdump: Attemping to create /sdcard/ramdump
2019-07-03 11:04:46.141 8842-8842/? E/subsystem_ramdump: Unable to create /sdcard/ramdump
2019-07-03 11:04:46.141 8842-8842/? E/subsystem_ramdump: Unable to create /sdcard/ramdump
2019-07-03 11:04:46.141 8842-8842/? E/subsystem_ramdump: Failed to initialize ramdump


