2

我正在尝试按照官方说明构建未修改的 Chromium,但出现以下错误,我尝试重新安装 Ubuntu 8、12 但没有区别:

[10/6591] ACTION Creating jsr_305_javalib jar

FAILED: cd ../../third_party/jsr-305; python ../../build/android/jar.py "--classes-dir=../../out/Release/gen/jsr_305_javalib/classes" "--jar-path=../../out/Release/lib.java/jsr_305_javalib.jar" "--excluded-classes=\"*/R.class\" \"*/R##*.class\"" "--ignore=035ff3d8153c7ebb3e17803d6ec654de  -"

Traceback (most recent call last):
  File "../../build/android/jar.py", line 53, in <module>
    sys.exit(main(sys.argv))
  File "../../build/android/jar.py", line 46, in main
    DoJar(options)
  File "../../build/android/jar.py", line 30, in DoJar
    subprocess.check_call(jar_cmd, cwd=jar_cwd)
  File "/usr/lib/python2.7/subprocess.py", line 506, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
4

2 回答 2

4

我停止了同样的错误。最后,我发现了我忘记添加 jar 命令的 PATH 的愚蠢错误。除了 Chromium 官方构建说明中的 java 设置指南之外,还需要以下命令。

sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_xx/bin/jar 50000
于 2013-04-03T17:15:51.580 回答
0

您必须安装 depot_tools 软件包。试试这个命令;

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:/path/to/depot_tools
于 2016-05-01T15:32:44.567 回答