How to install Android's repo on my Ubuntu sys

2020-02-26 09:29发布

I want to install repo for working with the Android source files. How to install repo?

标签: android repo
4条回答
我只想做你的唯一
2楼-- · 2020-02-26 09:46

Repo is included in phablet-tools package which is available from official package repository for Ubuntu releases starting from 14.04

查看更多
啃猪蹄的小仙女
3楼-- · 2020-02-26 09:52

From https://source.android.com/source/downloading#installing-repo:

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir working-directory-name 
$ cd working-directory-name 
$ repo init -u git://android.git.kernel.org/platform/manifest.git 

Authoritative instructions

查看更多
Bombasti
4楼-- · 2020-02-26 09:52

The location changed to http://commondatastorage.googleapis.com/git-repo-downloads/repo:

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
查看更多
走好不送
5楼-- · 2020-02-26 09:53

If you are using Ubuntu 16.04, just use this command line:

sudo apt-get install repo -y

查看更多
登录 后发表回答