• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Building the Chromium-based WebView in AOSP is no longer supported. WebView can
2now be built entirely from the Chromium source code.
3
4General instructions for building WebView from Chromium:
5https://www.chromium.org/developers/how-tos/build-instructions-android-webview
6
7For questions about building WebView, please see
8https://groups.google.com/a/chromium.org/forum/#!forum/android-webview-dev
9
10------
11
12The prebuilt APKs here are built from Chromium upstream sources; check the
13commit messages to see the version number for a particular prebuilt (the version
14number looks like 74.0.3729.127 and this is also the name of the tag in the
15Chromium git repository).
16
17If you want to build your own WebView, you should build the latest stable
18version, not the version published here: newer versions have important security
19and stability improvements.
20
21However, if you want to reproduce the native library (libwebviewchromium.so)
22contained in these prebuilt APKs, you should be able to do so with the following
23GN arguments:
24
25target_os = "android"
26is_debug = false
27is_component_build = false
28is_official_build = true
29is_chrome_branded = false
30use_official_google_api_keys = false
31exclude_unwind_tables = true
32ffmpeg_branding = "Chrome"
33proprietary_codecs = true
34enable_remoting = true
35
36as well as specifying the appropriate target_cpu, which should be one of
37"arm", "arm64", "x86" or "x64".
38
39To build a complete WebView APK it is necessary to also set android_sdk_release
40to the current Android SDK version (for example, "q"). However, it's not always
41possible to do this successfully for all public Chromium versions: we are not
42able to publish the required Java code changes to support a given Android
43version until after that Android version's SDK has been publicly released, and
44so the public versions of Chromium do not always support the latest version of
45Android.
46