从服务器上更新代码后编译文件并打包

来源:互联网 发布:算法导论视频 编辑:程序博客网 时间:2024/06/10 22:03

1.更新代码

git push origin 分支名

2.更新新的版本后,需要执行make update -api.
不然会出现如下错误:

You have tried to change the API from what has been previously approved.To make these errors go away, you have two choices:   1) You can add "@hide" javadoc comments to the methods, etc. listed in the      errors above.   2) You can update current.txt by executing the following command:         make update-api      To submit the revised current.txt to the main Android repository,      you will need approval.

3.编译

make -j8

4.打包

   mkimage.sh  

5.载入机子
如果串口已经设置好:

    minicom    reboot loader    . download.sh

如果串口没有设置好:

cd out/host/linux-x86/bin. adb shellreboot loader
0 0
原创粉丝点击