android - AOSP构建错误

标签 android makefile android-source

我试图在 Linux 16.04 LTS 机器上编译 Android O 代码,但我遇到了一些问题。我遇到了以下错误:

[ 89% 55834/62176] Compiling SDK Stubs:
out/target/comm.../android_system_stubs_current_intermediates/classes.jar
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
[ 89% 55835/62176] Compiling SDK Stubs: out/target/comm...BRARIES/android_stubs_current_intermediates/classes.jar
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
ninja: build stopped: subcommand failed. 
20:33:13 ninja failed with: exit status 1 build/core/main.mk:21: recipe for target 'run_soong_ui' failed make: *** 
[run_soong_ui] Error 1

我尝试安装以下库:

$ sudo apt-get install git 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 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

但问题仍然存在。谁能帮忙解决这个问题?

最佳答案

Ubuntu >= 14.04:

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip

关于android - AOSP构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46047903/

相关文章:

c# - Premake 无法为 C# 库创建 Makefile

android - 如何指定模块仅在 userdebug build 中编译和安装,而不是 user build

android - Android Studio 2.2 上的即时运行问题

android - 如何获取 Admob 的设备 ID

java - Android 应用程序在 for 循环后崩溃

java - netbeans makefile java 执行

windows - Cygwin,编译和运行 C 程序时出现 "couldn' t get proc lock 错误

android - 如何通过单击按钮删除房间的 SQlite 行

Android AOSP 构建在 MacOS 10.14 上失败

git - 在 git 存储库中维护 AOSP 源代码的更好方法是什么