Window上ubuntu子系统编译Android

1、编译环境

  1. AOSP : Android源码下载
  2. 安装java:sudo apt-get install openjdk-8-jdk;切换java版本sudo update-alternative --config java
  3. 安装依赖包sudo apt-get install libncurses5 libgl1-mesa-dev g++-multilib flex bison gperf build-essential tofrodos python-markdown libxml2-utils xsltproc dpkg-dev libsdl1.2-dev git-core gnupg flex bison gperf zip curl zlib1g-dev gcc-multilib libc6-dev-i386 x11proto-core-dev libx11-dev libgl1-mesa-dev libxml2-utils xsltproc unzip m4 ccache
  4. AOSP : Android编译记录source build/envsetup.shlunch aosp_x86_64-eng(window系统x86_64)

2、WSL2编译报错

2.1 You are building on a machine with 11.6GB of RAM

xhbruce@XhBruce:/mnt/d/AOSP/Android$ make framework-minus-apex
03:33:58 ************************************************************
03:33:58 You are building on a machine with 11.6GB of RAM
03:33:58
03:33:58 The minimum required amount of free memory is around 16GB,
03:33:58 and even with that, some configurations may not work.
03:33:58
03:33:58 If you run into segfaults or other errors, try reducing your
03:33:58 -j value.
03:33:58 ************************************************************

#### failed to build some targets (04:56 (mm:ss)) ####

build/soong/ui/build/build.go 修改限制

2.2 Case-insensitive filesystems not supported

fsutil.exe file SetCaseSensitiveInfo D:\AOSP\Android enable
fsutil.exe file queryCaseSensitiveInfo D:\AOSP\Android

04:04:17 ************************************************************
04:04:17 You are building on a case-insensitive filesystem.
04:04:17 Please move your source tree to a case-sensitive filesystem.
04:04:17 ************************************************************
04:04:17 Case-insensitive filesystems not supported

WSL之fsutil.exe setCaseSensitiveInfo错误: 目录不是空的

3. android模拟器调试

玩转wsl2之android模拟器调试

相关推荐

  1. Windowubuntu子系统编译Android

    2024-06-17 03:46:07       7 阅读
  2. 2.windows ubuntu子系统配置

    2024-06-17 03:46:07       18 阅读
  3. Android 子系统

    2024-06-17 03:46:07       21 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-17 03:46:07       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-17 03:46:07       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-17 03:46:07       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-17 03:46:07       18 阅读

热门阅读

  1. react捡起来了

    2024-06-17 03:46:07       7 阅读
  2. python判断一个数是不是偶数

    2024-06-17 03:46:07       9 阅读
  3. 编程机器人的参数表怎么看

    2024-06-17 03:46:07       6 阅读
  4. AI芯片战场的迁徙:从训练到推理的深度剖析

    2024-06-17 03:46:07       6 阅读
  5. Linux部署FTP服务

    2024-06-17 03:46:07       5 阅读
  6. 大模型算法岗 100 道面试题(含答案)

    2024-06-17 03:46:07       6 阅读
  7. vue项目导入 .xlsx 文件

    2024-06-17 03:46:07       6 阅读
  8. Eureka注册中心

    2024-06-17 03:46:07       4 阅读
  9. 6月16日-英语学习日记-(专科生)

    2024-06-17 03:46:07       5 阅读
  10. 推荐一个轻量级适合阅读的优秀C++开源项目

    2024-06-17 03:46:07       7 阅读
  11. 华为OD机考题HJ1 字符串最后一个单词的长度

    2024-06-17 03:46:07       6 阅读
  12. Postman接口测试工具详解

    2024-06-17 03:46:07       8 阅读