Build 为Dragonboard(Ubuntu 16.04)构建Android开源项目(AOSP)时“未能构建一些目标”

Build 为Dragonboard(Ubuntu 16.04)构建Android开源项目(AOSP)时“未能构建一些目标”,build,ubuntu-16.04,android-source,ninja,android-soong,Build,Ubuntu 16.04,Android Source,Ninja,Android Soong,我正在尝试完成Ubuntu 16.04中提到的过程:。 因为在我面对错误之前的步骤会产生广泛的结果,并且我已经成功地运行了,所以我要提到我面临问题的步骤。请注意,本教程占用了太多的存储空间 当我尝试构建AOSP的第三步时: make -j$(nproc) 错误率约为97%,原因如下: goroutine 689209 [runnable]: android/soong/android.(*ModuleBase).computeInstallDeps(0xc058a41000, 0xa87f40

我正在尝试完成Ubuntu 16.04中提到的过程:。 因为在我面对错误之前的步骤会产生广泛的结果,并且我已经成功地运行了,所以我要提到我面临问题的步骤。请注意,本教程占用了太多的存储空间

当我尝试构建AOSP的第三步时:

make -j$(nproc)
错误率约为97%,原因如下:

goroutine 689209 [runnable]:
android/soong/android.(*ModuleBase).computeInstallDeps(0xc058a41000, 0xa87f40, 0xc08bcb6b60, 0x9a51a1, 0x7, 0xc000024467)
    /home/Username/android_top/build/soong/android/module.go:628 +0x7c
android/soong/android.(*ModuleBase).GenerateBuildActions(0xc058a41000, 0xa87f40, 0xc08bcb6b60)
    /home/Username/android_top/build/soong/android/module.go:791 +0xec
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2.1(0xc01a5c5980, 0xc08bcb6b60)
    /home/Username/android_top/build/blueprint/context.go:2303 +0x80
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2(0xc01a5c5980, 0x0)
    /home/Username/android_top/build/blueprint/context.go:2304 +0x335
github.com/google/blueprint.(*Context).parallelVisit.func1.1(0xc0082e1500, 0xc01a5c5980, 0xc00e616360, 0xc00e616120)
    /home/Username/android_top/build/blueprint/context.go:1709 +0x30
created by github.com/google/blueprint.(*Context).parallelVisit.func1
    /home/Username/android_top/build/blueprint/context.go:1708 +0x124
06:38:10 soong bootstrap failed with: exit status 1
ninja: build stopped: subcommand failed.
#### failed to build some targets (06:24 (mm:ss)) ####

我收到此错误的任何可能原因?我在别处也找不到具体的解决方案。

我找到了答案,是内存不足错误。代码没有问题。如果有人面临类似的问题,希望它能有所帮助

它又帮了我,哈哈。