1

为了满足 Google 的要求,我在我的 Cordova 应用程序(使用 xwalk 2.4.0)上将 targetsdk 版本切换为 29。更新后应用程序在启动时崩溃:我在 logcat 中发现了以下错误:

11-02 19:13:46.079 28309 28451 W chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/com.visitami.visitamiprof-kerC1tXroImpS9vWnzWF_w==/lib/arm64/libxwalkdummy.so': couldn't get XW_Initialize function.
11-02 19:13:46.079 28309 28451 W chromium: [WARNING:xwalk_extension_server.cc(406)] Failed to initialize extension: /data/app/com.visitami.visitamiprof-kerC1tXroImpS9vWnzWF_w==/lib/arm64/libxwalkdummy.so
11-02 19:13:46.080 28309 28451 W chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/com.visitami.visitamiprof-kerC1tXroImpS9vWnzWF_w==/lib/arm64/libxwalkcore.so': couldn't get XW_Initialize function.
11-02 19:13:46.081 28309 28451 W chromium: [WARNING:xwalk_extension_server.cc(406)] Failed to initialize extension: /data/app/com.visitami.visitamiprof-kerC1tXroImpS9vWnzWF_w==/lib/arm64/libxwalkcore.so
11-02 19:13:46.084  4948  7255 V WindowManager: Relayout Window{584e4ba u0 com.visitami.visitamiprof/com.visitami.visitamiprof.Visitami}: viewVisibility=0 req=1440x2960

接着:

1-02 19:13:49.040 26554 28485 D AppErrorNotification: errorType : 24, process : com.visitami.visitamiprof , uid : 0
11-02 19:13:49.134  4948  5181 W InputDispatcher: channel '584e4ba com.visitami.visitamiprof/com.visitami.visitamiprof.Visitami (server)' ~ Consumer closed input channel or an error occurred.  events=0x9, fd=566
11-02 19:13:49.134  4948  5181 E InputDispatcher: channel '584e4ba com.visitami.visitamiprof/com.visitami.visitamiprof.Visitami (server)' ~ Channel is unrecoverably broken and will be disposed!
11-02 19:13:49.134  4948  5181 W InputDispatcher: channel '96fbcdc com.visitami.visitamiprof/com.visitami.visitamiprof.Visitami (server)' ~ Consumer closed input channel or an error occurred.  events=0x9, fd=558
11-02 19:13:49.134  4948  5181 E InputDispatcher: channel '96fbcdc com.visitami.visitamiprof/com.visitami.visitamiprof.Visitami (server)' ~ Channel is unrecoverably broken and will be disposed!
11-02 19:13:49.138  4948  5181 W InputDispatcher: channel 'f7c6c29 com.visitami.visitamiprof/com.visitami.visitamiprof.Visitami (server)' ~ Consumer closed input channel or an error occurred.  events=0x9, fd=516
11-02 19:13:49.138  4948  5181 E InputDispatcher: channel 'f7c6c29 com.visitami.visitamiprof/com.visitami.visitamiprof.Visitami (server)' ~ Channel is unrecoverably broken and will be disposed!

对于我的应用程序,删除 xwalk 是一场灾难。

4

1 回答 1

0

有点老的问题,但我有可能对其他人有用的“一个”答案。

我们遇到了同样的问题,根本无法让应用程序正常工作。最后,我出于测试目的删除了 xwalk,它确实有效。

该应用程序不仅在 Android 5 和 11 上测试后仍然可以正常运行,而且 APK 从 75MB 变为 4MB。APK 也不再包含任何“.so”文件,因此商店不会再抱怨架构。

我想这取决于您是否需要 xwalk 提供的额外功能,例如 CSS3

于 2021-02-16T20:51:43.690 回答