首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行安卓版本工具的ota_from_target_files时,"OSError:[Errno 2]没有这样的文件或目录“

运行安卓版本工具的ota_from_target_files时,"OSError:[Errno 2]没有这样的文件或目录“
EN

Stack Overflow用户
提问于 2016-01-13 01:30:53
回答 1查看 1.5K关注 0票数 1

当我使用Android版本工具运行ota_from_target_files时,我尝试了很多种格式,但都没能找出我OSError: [Errno 2] No such file or directory错误的来源。

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2016-02-28 21:25:56

检查imgdiff工具是否可用:find out/host/ -name "*imgdiff*"

尝试运行make otatools来构建imgdiff可执行文件。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34750165

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档