Compiler errors 构建android源代码错误

Compiler errors 构建android源代码错误,compiler-errors,makefile,android-source,building,Compiler Errors,Makefile,Android Source,Building,当我尝试使用命令make-j4构建android源代码时,我得到错误: *** Done with the cleaning, now starting the real build. Checking build tools versions... build/core/base_rules.mk:130: *** Android/android-ndk-r8d/sources//android/cpufeatures: MODULE.TARGET.STATIC_LIBRARIES.cpuf

当我尝试使用命令make-j4构建android源代码时,我得到错误:

*** Done with the cleaning, now starting the real build.
Checking build tools versions...
build/core/base_rules.mk:130: 
*** Android/android-ndk-r8d/sources//android/cpufeatures:
MODULE.TARGET.STATIC_LIBRARIES.cpufeatures already defined by Android/android-ndk-r8d/sources/android/cpufeatures。stoped。

这是什么意思,有什么问题吗?

这可能是一个很长的猜测,但是你能检查一下你没有两次使用相同的模块吗

find . |grep cpufeatures

可能会给你答案。在该区域进行的检查是为了验证每个模块是否唯一,如果您在两个位置有相同的模块(例如,复制错误),则此阶段将失败。

确保您没有在与AOSP相同的目录中打开NDK或SDK tarballs,因为AOSP已经有自己的NDK和SDK目录。这个错误给我造成了与OP报告中相同的问题。

我也有同样的问题。结果是因为我把NDK放在了AOSP目录中。AOSP的一个构建脚本尝试执行目录travelsal,并包含了一些NDK的配置文件。在我搬出NDK后,问题消失了。

rm-fr out/then make REACH是一个简单的修复方法。谢谢,我尝试了,但它不起作用