Android chromium 全浏览器 apk 构建问题
Android chromium full browser apk build issues
我试图用这个 instruction
构建 chromium android apk
但是在 GN configuration 步骤我在编辑和保存参数文件后遇到以下问题
ERROR at //build/config/android/internal_rules.gni:1966:13: Script returned non-zero exit code.
exec_script("//build/android/gyp/find.py",
^----------
Current dir: /home/artem/chromium/src/out/Default/
Command: python -- /home/artem/chromium/src/build/android/gyp/find.py ../../third_party/android_tools/sdk/extras/google/google_play_services/libproject/google-play-services_lib/res
Returned 1.
stderr:
../../third_party/android_tools/sdk/extras/google/google_play_services/libproject/google-play-services_lib/res does not exist
See //build/config/android/rules.gni:634:3: whence it was called.
process_resources(process_resources_target_name) {
^-------------------------------------------------
See //third_party/android_tools/BUILD.gn:120:1: whence it was called.
android_resources("google_play_services_default_resources") {
^------------------------------------------------------------
See //base/BUILD.gn:1074:7: which caused the file to be included.
"//third_party/android_tools:cpu_features",
^-----------------------------------------
然后我尝试使用命令 from this issue thread:
手动下载 google 播放服务
sudo ./build/android/play_services/update.py download
并收到此警告:
Your version of the Google Play services library is not up to date. You might run into issues building or running the app. Please run `./build/android/play_services/update.py download` to retry downloading it.
之后我尝试构建完整的浏览器 apk
ninja -C out/Default chrome_public_apk
并得到错误:
ninja: Entering directory `out/Default'
ninja: fatal: chdir to 'out/Default' - No such file or directory
有没有办法解决这个问题并构建可用的 apk 文件?
这对我有用:
运行 这个命令在 chromium 文件夹:
git rebase-update
gclient sync
下载google播放服务:
sudo ./build/android/play_services/update.py download
配置GN:gn args opt/Full
- 将此行添加到文件:
target_os="android"
- 使用命令构建 apk:
ninja -C opt/Full chrome_public_apk
我试图用这个 instruction
构建 chromium android apk但是在 GN configuration 步骤我在编辑和保存参数文件后遇到以下问题
ERROR at //build/config/android/internal_rules.gni:1966:13: Script returned non-zero exit code.
exec_script("//build/android/gyp/find.py",
^----------
Current dir: /home/artem/chromium/src/out/Default/
Command: python -- /home/artem/chromium/src/build/android/gyp/find.py ../../third_party/android_tools/sdk/extras/google/google_play_services/libproject/google-play-services_lib/res
Returned 1.
stderr:
../../third_party/android_tools/sdk/extras/google/google_play_services/libproject/google-play-services_lib/res does not exist
See //build/config/android/rules.gni:634:3: whence it was called.
process_resources(process_resources_target_name) {
^-------------------------------------------------
See //third_party/android_tools/BUILD.gn:120:1: whence it was called.
android_resources("google_play_services_default_resources") {
^------------------------------------------------------------
See //base/BUILD.gn:1074:7: which caused the file to be included.
"//third_party/android_tools:cpu_features",
^-----------------------------------------
然后我尝试使用命令 from this issue thread:
手动下载 google 播放服务sudo ./build/android/play_services/update.py download
并收到此警告:
Your version of the Google Play services library is not up to date. You might run into issues building or running the app. Please run `./build/android/play_services/update.py download` to retry downloading it.
之后我尝试构建完整的浏览器 apk
ninja -C out/Default chrome_public_apk
并得到错误:
ninja: Entering directory `out/Default'
ninja: fatal: chdir to 'out/Default' - No such file or directory
有没有办法解决这个问题并构建可用的 apk 文件?
这对我有用:
运行 这个命令在 chromium 文件夹:
git rebase-update gclient sync
下载google播放服务:
sudo ./build/android/play_services/update.py download
配置GN:
gn args opt/Full
- 将此行添加到文件:
target_os="android"
- 使用命令构建 apk:
ninja -C opt/Full chrome_public_apk