gpt4 book ai didi

java - 从源代码构建 Android - 文件未找到错误

转载 作者:行者123 更新时间:2023-12-01 06:20:31 26 4
gpt4 key购买 nike

我一直在遵循 source.android.com 上的构建教程来尝试构建 ICS。当我使用 make 命令时,出现“找不到文件”错误。

有人对此有更多经验吗?

这是控制台,从我的 make 命令开始:

[root@dev working_directory]# make
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.3.0.2.0.1.0
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
/bin/bash: line 0: cd: cts/tools/cts-native-xml-generator/src/res: No such file or directory
host C: acp <= build/tools/acp/acp.c
In file included from /usr/include/features.h:387:0,
from /usr/include/stdlib.h:25,
from build/tools/acp/acp.c:11:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1

最佳答案

您似乎缺少一些软件包。按照 http://source.android.com/source/initializing.html 上提供的说明进行操作设置您的环境。

关于java - 从源代码构建 Android - 文件未找到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8904018/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com