提取android时安装depot_tools时出错

时间:2018-07-19 17:39:42

标签: android chromium depottools

我无法为Android安装depot_tools。 我遵循this website上列出的说明,并且在空目录中运行fetch android时遇到以下问题:

Running: gclient root
Running: gclient config --spec 'solutions = [
  {
    "url": "https://chromium.googlesource.com/chromium/src.git",
    "managed": False,
    "name": "src",
    "custom_deps": {},
  },
]
target_os = ["android"]
'
Running: gclient sync

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src.git /path/to/home/yuv-decode/_gclient_src_uJeYTG' in '/path/to/home/yuv-decode'
Cloning into '/path/to/home/yuv-decode/_gclient_src_uJeYTG'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src.git /path/to/home/yuv-decode/_gclient_src_opmJiS' in '/path/to/home/yuv-decode'
Cloning into '/path/to/home/yuv-decode/_gclient_src_opmJiS'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

[0:01:00] Still working on:
[0:01:00]   src

[0:01:10] Still working on:
[0:01:10]   src

still working on: src持续运行约25分钟。然后出现以下问题:

Syncing projects:   0% ( 0/ 2)
[0:26:51] Still working on:
[0:26:51]   src
Syncing projects:   3% ( 5/160) src/third_party/android_deps/repository/android_arch_core_common:chromium/third_party/android_deps/repSyncing projects:   4% ( 7/160) src/third_party/android_deps/repository/android_arch_lifecycle_runtime:chromium/third_party/android_deSyncing projects:   5% ( 8/160) src/third_party/android_deps/repository/com_android_support_animated_vector_drawable:chromium/third_paSyncing projects:   6% (10/160) src/third_party/android_deps/repository/com_android_support_cardview_v7:chromium/third_party/android_dSyncing projects:   7% (12/160) src/third_party/android_deps/repository/com_android_support_gridlayout_v7:chromium/third_party/androidSyncing projects:   8% (13/160) src/third_party/android_deps/repository/com_android_support_leanback_v17:chromium/third_party/android_Syncing projects:   9% (15/160) src/third_party/android_deps/repository/com_android_support_multidex:chromium/third_party/android_depsSyncing projects:  10% (16/160) src/third_party/android_deps/repository/com_android_support_palette_v7:chromium/third_party/android_deSyncing projects:  11% (18/160) src/third_party/android_deps/repository/com_android_support_preference_v14:chromium/third_party/androiSyncing projects:  12% (20/160) src/third_party/android_deps/repository/com_android_support_recyclerview_v7:chromium/third_party/androSyncing projects:  13% (21/160) src/third_party/android_deps/repository/com_android_support_support_annotations:chromium/third_party/aSyncing projects:  14% (23/160) src/third_party/android_deps/repository/com_android_support_support_core_ui:chromium/third_party/androSyncing projects:  15% (24/160) src/third_party/android_deps/repository/com_android_support_support_core_utils:chromium/third_party/anSyncing projects:  16% (26/160) src/third_party/android_deps/repository/com_android_support_support_media_compat:chromium/third_party/Syncing projects:  17% (28/160) src/third_party/android_deps/repository/com_android_support_support_v4:chromium/third_party/android_deSyncing projects:  18% (29/160) src/third_party/android_deps/repository/com_android_support_support_vector_drawable:chromium/third_parSyncing projects:  19% (31/160) src/third_party/android_sdk/public:chromium/third_party/android_sdk/public/build-tools                Syncing projects:  31% (50/160) src/third_party/android_protobuf/src

src/chrome/test/data/xr/webvr_info (ERROR)
----------------------------------------
[0:26:51] Started.
[0:26:51]

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/github.com/toji/webvr.info.git /path/to/home/yuv-decode/src/chrome/test/data/xr/_gclient_webvr_info_kid35l' in '/path/to/home/yuv-decode'
[0:26:51] Cloning into '/path/to/home/yuv-decode/src/chrome/test/data/xr/_gclient_webvr_info_kid35l'...
[0:26:51] warning: You appear to have cloned an empty repository.
[0:26:51] Checking connectivity... done.
[0:26:52] _____ Conflicting directory found in /path/to/home/yuv-decode/src/chrome/test/data/xr/webvr_info. Moving to /path/to/home/yuv-decode/_bad_scm/src/chrome/test/data/xr/webvr_infoabaNAr.
[0:26:52]

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/github.com/toji/webvr.info.git /path/to/home/yuv-decode/src/chrome/test/data/xr/_gclient_webvr_info_LhZjCt' in '/path/to/home/yuv-decode'
[0:26:52] Cloning into '/path/to/home/yuv-decode/src/chrome/test/data/xr/_gclient_webvr_info_LhZjCt'...
[0:26:52] warning: You appear to have cloned an empty repository.
[0:26:52] Checking connectivity... done.
----------------------------------------
Error: Command 'git rev-parse --verify FETCH_HEAD' returned non-zero exit status 128 in /path/to/home/yuv-decode/src/chrome/test/data/xr/webvr_info
fatal: Needed a single revision



Warnings:
Conflicting directory /path/to/home/yuv-decode/src moved to /path/to/home/yuv-decode/_bad_scm/srcb_szlx.
Conflicting directory /path/to/home/yuv-decode/src/third_party/SPIRV-Tools/src moved to /path/to/home/yuv-decode/_bad_scm/src/third_party/SPIRV-Tools/srcALCK5v.
Conflicting directory /path/to/home/yuv-decode/src/chrome/test/data/xr/webvr_info moved to /path/to/home/yuv-decode/_bad_scm/src/chrome/test/data/xr/webvr_infoabaNAr.
Conflicting directory /path/to/home/yuv-decode/src/buildtools moved to /path/to/home/yuv-decode/_bad_scm/src/buildtoolsQqNDsr.
Conflicting directory /path/to/home/yuv-decode/src/chrome/test/data/xr/webxr_samples moved to /path/to/home/yuv-decode/_bad_scm/src/chrome/test/data/xr/webxr_sampleseq5CvY.
Conflicting directory /path/to/home/yuv-decode/src/chrome/test/data/perf/frame_rate/content moved to /path/to/home/yuv-decode/_bad_scm/src/chrome/test/data/perf/frame_rate/content4ouCIi.
Conflicting directory /path/to/home/yuv-decode/src/native_client moved to /path/to/home/yuv-decode/_bad_scm/src/native_clientAV11KV.
Conflicting directory /path/to/home/yuv-decode/src/chrome/test/data/perf/canvas_bench moved to /path/to/home/yuv-decode/_bad_scm/src/chrome/test/data/perf/canvas_benchmIgPr9.
Conflicting directory /path/to/home/yuv-decode/src/media/cdm/api moved to /path/to/home/yuv-decode/_bad_scm/src/media/cdm/apiWsiJ5v.
Conflicting directory /path/to/home/yuv-decode/src/third_party/android_tools moved to /path/to/home/yuv-decode/_bad_scm/src/third_party/android_toolsAIKbK0.
Conflicting directory /path/to/home/yuv-decode/src/chrome/browser/resources/media_router/extension/src moved to /path/to/home/yuv-decode/_bad_scm/src/chrome/browser/resources/media_router/extension/srcAtEVIW.
Conflicting directory /path/to/home/yuv-decode/src/third_party/android_ndk moved to /path/to/home/yuv-decode/_bad_scm/src/third_party/android_ndkrFCJ3e.
Conflicting directory /path/to/home/yuv-decode/src/third_party/android_protobuf/src moved to /path/to/home/yuv-decode/_bad_scm/src/third_party/android_protobuf/srcOyjeVm.
Traceback (most recent call last):
  File "/path/to/depot_tools/fetch.py", line 306, in <module>
    sys.exit(main())
  File "/path/to/depot_tools/fetch.py", line 301, in main
    return run(options, spec, root)
  File "/path/to/depot_tools/fetch.py", line 295, in run
    return checkout.init()
  File "/path/to/depot_tools/fetch.py", line 137, in init
    self.run_gclient(*sync_cmd)
  File "/path/to/depot_tools/fetch.py", line 82, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "/path/to/depot_tools/fetch.py", line 71, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('gclient', 'sync')' returned non-zero exit status 1

非常感谢您提供有关解决此问题的帮助,谢谢!

0 个答案:

没有答案