编译android4.4系统步骤简版
来源:互联网 发布:java 读取zip包中文件 编辑:程序博客网 时间:2024/06/06 07:03
【编译系统:ubuntu12.04LTS(要求必须64位),内存8G,4核,i5处理器。要求保留30G空闲硬盘】
步骤1: 安装JDK1.6(必须是1.6),并配置环境变量。
步骤2: 安装必须的包或者库之类的。
在编译的时候会出现很多错误,大概都是缺少工具或者库之类的。可以用apt-get安装,大概可以一键安装。
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
并不是所有的包都需要安装,例如mingw32就不需要。另外,有的包安装的时候会提示remove,要看好,别remove多了导致系统用不了了。
步骤3: 打开终端,安装repo(repo就是仓库,用来调用git进行android代码管理的一个工具)
chmod a+x ~/bin/repo
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u https://android.googlesource.com/platform/manifest
意思就是我初始化一个网址,我要从这个网址上下载了,也可以特指要下载那个版本
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
怎么查看现在有多少版本呢?有两个方法:
第一是直接打开网址http://source.android.com/source/build-numbers.html
第二就是用命令curl https://android.googlesource.com/platform/manifest > log.html ,然后打开。
在然后,就是
repo sync
等待下载完成。
步骤4: 进入刚才下载好的目录。
make -j5 (5表示用5个线程来编译)
以上参考的是http://source.android.com/source/downloading.html步骤5: 运行自己编译好的系统
source build/envsetup.sh
lunch sdk-eng
然后再执行
emulator
可以启动模拟器
步骤1: 安装JDK1.6(必须是1.6),并配置环境变量。
步骤2: 安装必须的包或者库之类的。
在编译的时候会出现很多错误,大概都是缺少工具或者库之类的。可以用apt-get安装,大概可以一键安装。
sudo apt-get install git-core gnupg flex bison gperf build-essential \zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
并不是所有的包都需要安装,例如mingw32就不需要。另外,有的包安装的时候会提示remove,要看好,别remove多了导致系统用不了了。
步骤3: 打开终端,安装repo(repo就是仓库,用来调用git进行android代码管理的一个工具)
mkdir ~/bin
PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repochmod a+x ~/bin/repo
以上的意思就是从google抓取
repo到自己本地,然后给添加执行权限。
然后,
新建自己的代码workspace,名字随便起。
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u https://android.googlesource.com/platform/manifest
意思就是我初始化一个网址,我要从这个网址上下载了,也可以特指要下载那个版本
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
怎么查看现在有多少版本呢?有两个方法:
第一是直接打开网址http://source.android.com/source/build-numbers.html
第二就是用命令curl https://android.googlesource.com/platform/manifest > log.html ,然后打开。
在然后,就是
repo sync
等待下载完成。
步骤4: 进入刚才下载好的目录。
make -j5 (5表示用5个线程来编译)
以上参考的是http://source.android.com/source/downloading.html
source build/envsetup.sh
lunch sdk-eng
然后再执行
emulator
可以启动模拟器
0 0
- 编译android4.4系统步骤简版
- 编译Android4.4系统总结
- Ubuntu12.04系统编译Android4.4源码
- RK312x机顶盒Android4.4系统编译
- android4.4系统源码编译(三)_编译
- android4.1.1系统编译全过程
- android4.1.1系统编译全过程
- android4.1.1系统编译全过程
- android4.4系统源码编译(一)_环境搭建
- android4.4系统源码编译(二)_源码下载
- android4.4系统源码编译(四)_问题总结
- android4.4系统源码编译(四)_问题总结
- 编译android4.4源码
- android4.4 编译
- Android4.0.1 模拟器内核 最新下载地址及编译步骤
- Android4.0.1 模拟器内核 最新下载地址及编译步骤
- Android4.0.1 模拟器内核 最新下载地址及编译步骤
- Android4.0.1 模拟器内核 最新下载地址及编译步骤
- 树的存储和构建
- oracle服务器和客户端字符集的查看和修改
- Presenting view controllers on detached view controllers is discouraged
- 搭建Eclipse 同时开发android和j2ee开发环境
- kendo ui开源工具:Kendo ui core
- 编译android4.4系统步骤简版
- Fragment学习之ListFragment的使用
- MySQL 性能优化
- Apache+tomcat的整合
- xcelAndJSON的设计决策
- eclipse生成jar包
- 文本框输入限制
- IOS 开发遇到的问题
- Yii CDbCriteria 常用方法