欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 手游 > Ubuntu24.10编译Android12源码并运行于模拟器中

Ubuntu24.10编译Android12源码并运行于模拟器中

2025/3/17 16:08:13 来源:https://blog.csdn.net/fittec/article/details/146301198  浏览:    关键词:Ubuntu24.10编译Android12源码并运行于模拟器中

效果如下:

 

初始化环境:

 运行lunch弹出对应目标

生成模拟器版本镜像

 

 

镜像生成成功

 生成模拟器启动镜像

 

编译注意事项:  

24.10版本:

sudo apt install curl
curl -sSL  'https://gerrit-googlesource.proxy.ustclug.org/git-repo/+/master/repo?format=TEXT' |base64 -d > ~/bin/repo
chmod a+x ~/bin/repo

增加如下软链:

sudo ln -s /usr/bin/python3 /usr/bin/python

 

git config --global user.name "tonyimax"

 

git config --global user.email "lin_hong_quan_msn@hotmail.com"

 

修改系统配置:

等号后 1 改为 0  

 

 

编译前先安装下面依赖:

sudo apt-get install gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses6 lib32ncurses6 x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig

初始化Android 12 仓库:

repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b  android-12.1.0_r5

同步源码:

repo sync -j4

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词