android_deps build issue |
|
Issue description
Chrome Version: Trunk
Encountered build issue on Android. It seems the build system tries to
read android_arch_lifecycle_runtime.info but it doesn't exist.
ERROR at //build/config/android/rules.gni:3131:32: Could not read file.
_scanned_files = read_file(_info_path, "scope")
^---------
I resolved this to "/usr/local/google/code/clankium/src/third_party/android_deps/repository/android_arch_lifecycle_runtime/android_arch_lifecycle_runtime.info".
See //third_party/android_deps/BUILD.gn:149:1: whence it was called.
android_aar_prebuilt("android_arch_lifecycle_runtime_java") {
^------------------------------------------------------------
See //build/config/android/internal_rules.gni:117:23: which caused the file to be included.
deps += [ "${_target_label}__build_config" ]
,
Apr 25 2018
FYI the steps that worked: echo "target_os = [ 'android' ]" >> .gclient gclient sync --nohooks sudo -E env "PATH=$PATH" gn gen --args='target_os="android" update_android_aar_prebuilts=true' out/tmp (unclear which did what) I followed those steps too. I also removed 'update_android_aar_prebuilts = true' from my args. Add the solution here in case people encounters the same issue. |
|
►
Sign in to add a comment |
|
Comment 1 by xingliu@chromium.org
, Apr 11 2018