2013-03-24 115 views
2

我試圖打造繼官方說明未改性的鉻,但我得到了下面的錯誤,我嘗試重新安裝Ubuntu的8,12,但是沒有什麼區別:失敗基礎上的Ubuntu

[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

我已經停止同樣的錯誤。最後,我發現我的愚蠢錯誤,我忘了添加jar命令的PATH。除了Chromium官方構建說明中的java設置指南之外,還需要以下命令。

sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_xx/bin/jar 50000 
+0

嘿,我得到相同的問題像@ Sokolware有。 – Herry 2014-04-03 09:34:38

0

您必須安裝depot_tools包。試試這個命令;

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 
export PATH=$PATH:/path/to/depot_tools