How to Run AAOS Virtual Machine | Android Automotive OS

Contents

  • 1.PC requirement
  • 2. Install generic system images
  • 3.Create a car AVD and run the emulator
  • 4.error handling

—This article is excerpted from Google’s official about automotive, please indicate the source for reprinting–

1.PC requirement

  • Android studio pre-installed.
  • Android studio version 4.0 later will be better.
  • Support intel x86 Emulator Accelerator(HAXM) will be better.

2. Install generic system images

Android Studio also includes a generic system image for Android Automotive OS that you can also use to test your app. This generic system image includes the Google Assistant so that you can test your app’s integration.

Follow these steps to install the generic system image:

  • In Android Studio, select Tools > SDK Manager.
  • Click the SDK Platforms tab.
  • Click Show Package Details.
  • Under Android 9.0 (Pie), select Automotive Intel x86 Atom System Image.
  • Click Apply, then click OK.
    Tip:
    How to Run AAOS Virtual Machine | Android Automotive OS_第1张图片

3.Create a car AVD and run the emulator

Follow these steps to create an Android Virtual Device (AVD) that represents an Android Automotive OS vehicle and then use that AVD to run the emulator:

  • 2.1 In Android Studio, select Tools > AVD Manager.
  • Click Create Virtual Device.
  • From the Select Hardware dialog, select Automotive, and then select a device and click Next.
  • Select a system image that targets Automotive, such as Android 9.0 (Automotive), and click Next.
  • Name your AVD and select any other options that you want to customize and then click Finish.
  • From tool window bar, select your Android Automotive OS AVD as your deployment target.
  • Click Run icon.

4.error handling

  • Error1. HAXM not installed
    • In Android Studio, select Tools > SDK Manager.
    • Click the SDK Tools tab.
    • select intel x86 Emulator Accelerator(HAXM) installer.
    • Click Apply, then click OK.
      How to Run AAOS Virtual Machine | Android Automotive OS_第2张图片
  • Error 2 can not find Automotive Intel x86 Atom System Image
    • In Android Studio, select Tools > SDK Manager.
    • Click the SDK Update Sites tab.
    • Click Add icon.
    • Enter the following Name and URL, then click OK:
    • Click Apply, then click OK.
    • Tips: Some BIOS on PC need to turn Intel(R) Virtualization Technology on.

Name: Android Automotive System Images
URL: https://dl.google.com/android/repository/sys-img/android-automotive/sys-img2-1.xml
Name: Polestar 2 System Image
URL: https://developer.polestar.com/sdk/polestar2-sys-img.xml

This Article refers to

https://developer.android.com/training/cars/testing#test-automotive-os


creator Date Version
Justin_Yip 2021-01-05 1.0

你可能感兴趣的:(Automotive,OS,打工人自习室,Proj_X)