为了满足 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 是一场灾难。