作者:zero__ | 来源:互联网 | 2023-10-10 00:50
ubuntu下
一:配置环境
1:安装JDK 1.6
2 : 安装开发过程中的需要的一些开发包,在终端执行以下命令:
sudo apt-get install git-core gnupg valgrind flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
二:获取Android源码
1:在用户目录下建立文件夹存放我们的Android目录
mkdir Android
cd Android
mkdir bin
cd bin
curl http://android.git.kernel.org/repo >repo
2:
sudo chmod a+x repo
repo init -u git://android.git.kernel.org/platform/manifest.git
常见问题:fatal: unable to connect a socket(connection refused)
解决方法:http://blog.csdn.net/truewell/article/details/4462225
windrows下
参考:http://blog.csdn.net/Android_Tutor/article/details/5621141