更新后需要清除数据,否则应用程序将无法运行

Need to clear data after update or app will not work

我从 Play 商店下载我的应用程序并转到“设置”->“应用程序”->“我的应用程序”->“存储”后,由于某种原因它会有 4.59 MB 的数据。即使我根本没有打开应用程序。我必须清除数据,否则我的应用程序不会 运行。一旦我清除了数据,它 运行 没问题,直到下一次更新,然后我必须再做一次。

Logcat 说

audit: type=1701 audit(1560151257.983:14744): auid=4294967295 uid=10521 gid=10521 ses=4294967295 subj=u:r:untrusted_app:s0:c9,c258,c512,c768 pid=31263 comm="UnityMain" exe="/system/bin/app_process64" sig=11

曾经 logcat 说过这个

/AndroidRuntime: FATAL EXCEPTION: UnityMain
    Process: com.myord.myapp, PID: 28413
    java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 000000000000012f
    Build fingerprint: 'samsung/crownqltesq/crownqltesq:9/PPR1.180610.011/N960USQS1CSD1:user/release-keys'
    Revision: '11'
    pid: 28413, tid: 28431, name: UnityMain  >>> com.myorg.myapp <<<
        x0   0000000000000000  x1   0000000000000000  x2   0000007b48d66be8  x3   0000000000000000
        x4   0000007b48d66b28  x5   0000000000000004  x6   0000007b59722d80  x7   00000000013e61f7
        x8   0000000000000001  x9   7a0a23fc6ec12b11  x10  0000007b44beb000  x11  0000007b4552407c
        x12  00000000000005e7  x13  0000000000000001  x14  0000000000000008  x15  aaaaaaaaaaaaaaab
        x16  0000007b464635e0  x17  0000007be651da20  x18  0000000000000001  x19  0000007b46510000
        x20  0000000000000000  x21  0000000000000000  x22  0000007b4675dab8  x23  0000007b46514000
        x24  0000007b45fc35d8  x25  0000007b467402d8  x26  0000007b46020104  x27  0000007b45fbeef7
        x28  0000007b48d67430  x29  0000007b48d66c50  x30  0000007b45841454
        sp   0000007b48d66c20  pc   0000007b45841468  pstate 0000000060000000

        at [vdso].(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.(:0)
        at libil2cpp.il2cpp_init(il2cpp_init:44)
        at libunity.(:0)
        at libunity.(:0)
        at libunity.(:0)
        at libunity.(:0)
        at base.(:0)

最后我也看到了很多

Channel is unrecoverably broken and will be disposed!

在清单中添加这个。

android:fullBackupContent="false"

这对我有用!!!