简体   繁体   English

Vpython 没有这样的文件:构建 gradle Chromium android studio 时出错

[英]Vpython no such file : Error while building gradle Chromium android studio

I am trying to import Chromium for Android as an Android Studio project on an Ubuntu 16.04(LTS).我正在尝试将 Android 的 Chromium 作为 Android Studio 项目导入 Ubuntu 16.04(LTS)。

I have completed the below steps to build chromium project for Android我已经完成了以下步骤来为 Android 构建铬项目

https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md#Installing-and-Running-Chromium-on-a-device/ https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md#Installing-and-Running-Chromium-on-a-device/

Problem : To create the Gradle file for importing the project into Android Studio I have referred to https://chromium.googlesource.com/chromium/src/+/master/docs/android_studio.md问题:要创建 Gradle 文件以将项目导入 Android Studio,我参考了https://chromium.googlesource.com/chromium/src/+/master/docs/android_studio.md

build/android/gradle/generate_gradle.py --output-directory out/Default

On running the above command I get the error :运行上述命令时出现错误

usr/bin/env : "vpython' : no such file or directory.

Python 3.5.2 is installed on the system Python 系统安装3.5.2

PS: Vpython: https://chromium.googlesource.com/infra/infra/+/master/doc/users/vpython_one_page.md PS: Vpython: https://chromium.googlesource.com/infra/infra/+/master/doc/users/vpython_one_page.md

yeah,i have same problem..是的,我有同样的问题..

because i not setting env with depot_tools.因为我没有使用 depot_tools 设置环境。

so you just need to execute code below;所以你只需要执行下面的代码;

and DEPOT_PATH is you depot_tools 's an DEPOT_PATH 是你 depot_tools 的一个

export PATH=$DEPOT_PATH:$PATH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM