【发布时间】:2016-01-12 17:30:52
【问题描述】:
在从 Android 发布工具运行 ota_from_target_files 时,我尝试了多种格式,但无法找出我的 OSError: [Errno 2] No such file or directory 错误的来源。
parallels@ubuntu:~/Git$ /home/parallels/Git/build/tools/releasetools/ota_from_target_files /home/parallels/Git/tmp/ota-dest.zip /home/parallels/Git/tmp/ota_update.zip
unzipping target target-files...
(using device-specific extensions from target_files)
--- can't determine the cache partition size ---
loaded device-specific extensions from /tmp/targetfiles-hVvBNo/META/releasetools.py
using prebuilt recovery.img from IMAGES...
using prebuilt boot.img from IMAGES...
Traceback (most recent call last):
File "/home/parallels/Git/build/tools/releasetools/ota_from_target_files", line 1801, in <module>
main(sys.argv[1:])
File "/home/parallels/Git/build/tools/releasetools/ota_from_target_files", line 1757, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/home/parallels/Git/build/tools/releasetools/ota_from_target_files", line 643, in WriteFullOTAPackage
recovery_img, boot_img)
File "/home/parallels/Git/build/tools/releasetools/common.py", line 1491, in MakeRecoveryPatch
_, _, patch = d.ComputePatch()
File "/home/parallels/Git/build/tools/releasetools/common.py", line 1151, in ComputePatch
p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/home/parallels/Git/build/tools/releasetools/common.py", line 87, in Run
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
【问题讨论】:
标签: android build-tools