簡體   English   中英

WebView shell 已停止在從 AOSP 構建的系統映像上

[英]WebView shell has stopped on a system image built from AOSP

我按照此處的說明構建 Android。 一切正常,我可以成功啟動模擬器。 但是,每當我到達包含 WebView 的屏幕時,應用程序就會崩潰並顯示消息“WebView shell 已停止”。 這是來自 logcat 的一些 output

04-19 19:31:29.694  2234  2234 I cr_BrowserStartup: Initializing chromium process, singleProcess=true
04-19 19:31:29.721  2234  2234 F chromium: [FATAL:gpu_info_collector_android.cc(193)] failed to create a pbuffer surface for fetching driver strings. EGL_SUCCESS (3000)
--------- beginning of crash
04-19 19:31:29.735  2254  2234 F google-breakpad: -----BEGIN BREAKPAD MICRODUMP-----
04-19 19:31:29.735  2254  2234 F google-breakpad: V WebView:52.0.2743.100
04-19 19:31:29.735  2254  2234 F google-breakpad: O A x86 01 i686 Android/aosp_x86/generic_x86:7.0/NBD92G/xxxx04191749:eng/test-keys
04-19 19:31:29.736  2254  2234 F google-breakpad: G UNKNOWN
04-19 19:31:29.736  2254  2234 F google-breakpad: H 12C00000 BF859000 0017 56AEE000 82D22000 0C:06 0D:07 0E:01 0F:02 10:01 11:02 12:01 1B:01 1C:01 1E:01

我在 CentOS 服務器上構建了 Android 源。 我構建了 Android 7.0。 構建的系統映像應該是正確的,因為如果我將其移動到我的 Macbook,一切正常,包括 WebView。

誰能告訴我應該怎么做才能使其在服務器上正常運行? 謝謝!

我已經通過使用sdkmanager創建 SDK 解決了這個問題。 我手動下載了emulatorplatformsplatform-toolssystem-images ,它們是 SDK 的必要部分。 然后我使用avdmanager為 API 級別 24(使用 Google API)創建一個帶有 x86 系統映像的 AVD。 在啟動 AVD 之前,我將system.imgrandisk.img替換為我從 Android 源構建的圖像。 就這樣。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM