WebView Shell在从AOSP构建的系统映像上已停止

问题描述 投票:0回答:1

我按照here的说明来构建Android。一切正常,我可以成功启动模拟器。但是,只要我到达包含WebView的屏幕,该应用程序就会崩溃,并显示一条消息“ WebView Shell已停止”。这是logcat的一些输出

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。

谁能告诉我该怎么做才能使其在服务器上正确运行?谢谢!

android webview chromium android-source
1个回答
0
投票

我已经通过使用sdkmanager创建一个SDK解决了该问题。我手动下载了emulatorplatformsplatform-toolssystem-images,它们是SDK的必要部分。然后,我使用avdmanager为API级别24(带有Google API)创建带有x86系统映像的AVD。启动AVD之前,我将system.imgrandisk.img替换为从Android来源构建的图像。仅此而已。

© www.soinside.com 2019 - 2024. All rights reserved.