3

我正在尝试为汽车构建模拟器,因为 Android Studio 3.5 没有检测到系统映像。我在 Android 8 和 9 中尝试过并下载了所有工具。如何在 AOSP 中构建汽车仿真器?

4

1 回答 1

3

您将需要 Mac 或 Linux 来构建模拟器 执行以下站点https://source.android.com/setup/build/initializing中提到的步骤,然后按照以下站点https://source.android中提到的步骤进行操作.com/setup/build/downloading,然后执行以下命令

$ repo init -u https://android.googlesource.com/platform/manifest -b android-9.0.0_r39
$ source build/envsetup.sh
$ lunch car_emu_x86_64-userdebug
$ make -j8
$ emulator 

作为参考,请参阅以下关于 SO Building Android Automotive from source的问题。

于 2019-09-23T07:05:29.830 回答