android source code compile

本文详细介绍了如何编译Android源代码,包括下载Repo工具、初始化Android源代码、设置认证、安装Java SDK、配置环境变量、安装必要软件包以及执行编译步骤。
摘要由CSDN通过智能技术生成

练习编译android源代码。

第一步,下载。

这一步特别困难,google的网站总是断了,download好几天都没有把代码弄全了,最后到处打听,还好能从其他组的server上弄下来一个完整的代码包。

还是把下载的步骤贴下来吧,来源于google的网站:

To install Repo:

  1. Make sure you have a bin/ directory in your home directory and that it is included in your path:

    $ mkdir ~/bin
    $ PATH=~/bin:$PATH
    
    
  2. Download the Repo tool and ensure that it is executable:

    $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    $ chmod a+x ~/bin/repo

After installing Repo, set up your client to access the Android source repository:

  1. Create an empty directory to hold your working files. If you're using MacOS, this has to be on a case-sensitive filesystem. Give it any name you like:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值