How to create Android Virtual Device with command line and avdmanager?

前端 未结 3 1819
南笙
南笙 2020-12-23 17:12

I can not create a device with avdmanager command line:

$ Android/Sdk/tools/bin/avdmanager create avd --name Nexus6P --tag 11 --package \'system-images;andro         


        
3条回答
  •  感情败类
    2020-12-23 17:33

    Here is my command that works on Mac.
    Notice:

    1. x86 and x86_64 are different ABIs.
    2. You need to download the system_image from sdkmanager first

    $  avdmanager create avd --force --name testAVD --abi google_apis/x86 --package 'system-images;android-23;google_apis;x86'
    
    Do you wish to create a custom hardware profile? [no] no
    
    $  avdmanager list avd
    
    
    Name: testAVD
    Path: /Users/xj/.android/avd/testAVD.avd
    Target: Google APIs (Google Inc.)
          Based on: Android 6.0 (Marshmallow) Tag/ABI: google_apis/x86
    

提交回复
热议问题