我正在尝试构建AOSP汽车模拟器,我收到以下错误
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=aosp_car_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-18.6.0-x86_64-10.14.5
HOST_BUILD_TYPE=release
BUILD_ID=PD2A.190115.032
OUT_DIR=out
============================================
ninja: no work to do.
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
error: frameworks/hardware/interfaces/Android.bp:1:1: unrecognized module type "hidl_package_root"
error: hardware/nxp/nfc/extns/intf/nxpnfc/1.0/Android.bp:3:1: unrecognized module type "hidl_package_root"
error: hardware/nxp/nfc/extns/intf/nxpnfc/1.0/Android.bp:8:1: unrecognized module type "hidl_interface"
error: frameworks/hardware/interfaces/displayservice/1.0/Android.bp:3:1: unrecognized module type "hidl_interface"
error: frameworks/hardware/interfaces/schedulerservice/1.0/Android.bp:3:1: unrecognized module type "hidl_interface"
error: frameworks/hardware/interfaces/vr/composer/1.0/Android.bp:3:1: unrecognized module type "hidl_interface"
error: hardware/nxp/secure_element/extns/intf/nxpese/1.0/Android.bp:3:1: unrecognized module type "hidl_package_root"
error: hardware/nxp/secure_element/extns/intf/nxpese/1.0/Android.bp:8:1: unrecognized module type "hidl_interface"
error: frameworks/hardware/interfaces/sensorservice/1.0/Android.bp:3:1: unrecognized module type "hidl_interface"
error: hardware/google/interfaces/Android.bp:4:1: unrecognized module type "hidl_package_root"
error: hardware/interfaces/Android.bp:1:1: unrecognized module type "hidl_package_root"
ninja: build stopped: subcommand failed.
14:09:59 soong bootstrap failed with: exit status 1
#### failed to build some targets (17 seconds) ####
我正在执行命令make -j32
,此后我收到此错误。如文档中所述,我已经创建了一个单独的磁盘映像来为aosp构建环境。我正在使用Mac Mojave OS。
我在构建AOSP时遇到了相同的问题,在我的情况下,内部版本号为PQ3A.190801.002
的Pixel 2 XL。
我从头开始,做的和以前一样,但是这次更加小心。有效。我没有花时间确认到底出了什么问题,但我强烈怀疑我不小心从here下载了错误的专有驱动程序。由于这也不是普遍问题,因此对您来说可能是相同的原因