【问题标题】:"OSError: [Errno 2] No such file or directory" when running ota_from_target_files of Android Release Tools运行 Android 发布工具的 ota_from_target_files 时出现“OSError: [Errno 2] No such file or directory”
【发布时间】: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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2016-06-07
      • 2017-07-05
      • 2018-11-20
      • 2018-07-24
      • 1970-01-01
      • 1970-01-01
      • 2019-03-25
      • 2018-01-21
      • 1970-01-01
      相关资源
      最近更新 更多