sudo apt install python
sudo apt install git
git config --global user.email "ceshi@gmail.com"
git config --global user.name "ceshi"
mkdir ~/bin
PATH=~/bin:$PATH
chmod a+x ~/bin/repo
PATH=/home/ub/bin:$PATH
chmod a+x /home/ub/bin/repo
repo init -u https://github.com/MoKee/android -b mkq-mr1
repo init -u https://hub.fastgit.org/MoKee/android -b mkq-mr1
sudo gedit /etc/apt/sources.list
https://mirrors6.tuna.tsinghua.edu.cn/git/AOSP/
//https://android.googlesource.com/替换
https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/
或
https://lug.ustc.edu.cn/wiki/mirrors/help/aosp
http://mirrors.ustc.edu.cn/aosp/
repo sync
git config --global http.postBuffer 524288000
修改配置文件
gedit ~/.bashrc
然后在配置文件的最下面加上这三行
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
然后保存退出后运行:source ~/.bashrc? 是配置文件生效
?
原文链接:https://blog.csdn.net/qq_21508727/article/details/89413590
sudo apt-get install openjdk-8-jdk
sudo apt-get install libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib
sudo apt-get install -y git flex bison gperf build-essential libncurses5-dev:i386
sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
sudo apt-get install dpkg-dev libsdl1.2-dev libesd0-dev
sudo apt-get install git-core gnupg flex bison gperf build-essential
sudo apt-get install zip curl zlib1g-dev gcc-multilib g++-multilib
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32ncurses5-dev x11proto-core-dev libx11-dev
sudo apt-get install libgl1-mesa-dev libxml2-utils xsltproc unzip m4
sudo apt-get install lib32z-dev ccache
sudo apt-get install libssl-dev
原文链接:https://blog.csdn.net/u012932409/article/details/104144461
ubuntu18.04无法安装libesd0-dev
解决办法:
1 sudo gedit /etc/apt/sources.list //在行尾添加如下两行的内容
2 deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe
3 deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe
更新软件源并重新安装:
sudo apt-get update && sudo apt-get install libesd0-dev
. build/envsetup.sh
source build/envsetup.sh
lunch mokee_mido-userdebug
mka bacon
因为默认安装的Ubuntu18,分区是自动分的, swap 分区只给了2G。但是电脑内存16G,一般swap分区要大于或等于物理内存(1-1.5倍),而且刚跑程序电脑卡死无奈重启,top命令最后引起我注意的是进场command:kswapd0, 所以摁下重启键回来增大swap分区试试。
查看内存情况:free -m。
创建一个新的swap文件
sudo dd if=/dev/zero of=swap bs=1G count=24
count的值是24G, 创建文件名为swap。(这步应该在/路径下执行了)
创建swap文件系统
sudo mkswap -f swap
开启新的swap
sudo swapon swap
关闭并删除原有的swap文件
sudo swapoff swapfile
sudo rm /swapfile
设置开机启动
sudo subl /etc/fstab
将原有的swapfile改为swap
原文链接:https://blog.csdn.net/limingyue0312/article/details/88792843