Failed cronet build

17 views
Skip to first unread message

Goodsol Lee

unread,
Sep 4, 2021, 8:33:22 AMSep 4
to Chromium-discuss
Hi, I'm newbee who wanna adopt cronet on my research.

I face the problem while building cronet with command: ninja -C out/Debug cronet_package in https://chromium.googlesource.com/chromium/src/+/refs/tags/63.0.3236.1/components/cronet/android/build_instructions.md. I followed all instructions before facing the error. 

The error log says there is no jar file, but I can't know what is jar file and where is it. The error log is as follows:

root@35f93f51d733:/home/mobisys22/quic/chromium/src# ninja -C out/Debug cronet_package
ninja: Entering directory `out/Debug'
[31/1893] ACTION //components/cronet/android:generate_javadoc(//build/toolchain/android:android_clang_arm)
FAILED: gen/components/cronet/android/generate_javadoc.zip 
python3 ../../components/cronet/tools/generate_javadoc.py --output-dir cronet --input-dir ../../components/cronet --overview-file cronet/README.md.html --readme-file ../../components/cronet/README.md --depfile gen/components/cronet/android/generate_javadoc.d --zip-file gen/components/cronet/android/generate_javadoc.zip --android-sdk-jar ../../third_party/android_sdk/public/platforms/android-31/android.jar --support-annotations-jar lib.java/third_party/androidx/androidx_annotation_annotation.jar --input-src-jar cronet/cronet_api-src.jar
Traceback (most recent call last):
  File "../../components/cronet/tools/generate_javadoc.py", line 141, in <module>
    sys.exit(main())
  File "../../components/cronet/tools/generate_javadoc.py", line 116, in main
    build_utils.CheckOutput(jar_cmd, cwd=unzipped_jar_path)
  File "/home/mobisys22/quic/chromium/src/build/android/gyp/util/build_utils.py", line 259, in CheckOutput
    stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd, env=env)
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'jar': 'jar'
[52/1893] ACTION //components/cronet/android:cronet_test_apk_java__errorprone(//build/toolchain/android:android_clang_arm)
ninja: build stopped: subcommand failed.

Thanks in advance.

Goodsol Lee

unread,
Sep 5, 2021, 2:32:46 AMSep 5
to Chromium-discuss, Goodsol Lee
Hi, I solved the problem with very simple shell command.

With installation of open jdk, problem can be solved.

shell command:  sudo apt-get install openjdk-8-jdk

Hope this may help someone.

2021년 9월 4일 토요일 오후 9시 33분 22초 UTC+9에 Goodsol Lee님이 작성:
Reply all
Reply to author
Forward
0 new messages