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

Guillaume Vincent :

I can not create a device with avdmanager command line:

$ Android/Sdk/tools/bin/avdmanager create avd --name Nexus6P --tag 11 --package 'system-images;android-23;google_apis;x86_64'
Error: Invalid --tag 11 for the selected package.

$ Android/Sdk/tools/bin/avdmanager create avd --name Nexus6P --package 'system-images;android-23;google_apis;x86_64'
Error: Invalid --tag default for the selected package.

$ Android/Sdk/tools/bin/avdmanager list
Available Android Virtual Devices:
Available devices definitions:
...
---------
id: 11 or "Nexus 6P"
    Name: Nexus 6P
    OEM : Google
---------

Any idea?

Gregriggins36 :

If you don't care about it being a Nexus 6P, you can run

echo no | Android/Sdk/tools/bin/avdmanager create avd --force --name testAVD --abi google_apis/x86_64 --package 'system-images;android-23;google_apis;x86_64'

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to create an AVD for "system-images;android-27;google_apis;x86" using avdmanager command line in Ubuntu?

How to create an Android AVD for Pixel device, from command line?

How to create Hotspot in Android Virtual Device?

How to create an Android virtual device of a deprecated version

How to create virtual device?

Unable to create Android Virtual Device

How to create a virtual MIDI device

How can i create new virtual mouse device on my android device?

AVD Manager - Cannot Create Android Virtual Device

How create a virtual io device in Linux that proxies data to real device?

How can I create an AVD from the command line based on the device definitions in the AVD Manager?

How to run Android Virtual Device in WebStorm

How to edit Virtual Device? Android Studio - Java

How to unpair bluetooth device from the command line

Unable to create Android Virtual Device in Android Studio 2.2 in Ubuntu

How to create a gist on command line

How to create a command line in C?

Unable to create ARM virtual device on "Qt creator for Android".

Can't create Virtual Device on Android Studio on Mac

Unable to create new android virtual device manager (AVD)

Android Device Monitor - Failed to create the java virtual machine

OMAPI in Android Virtual Device

Android Virtual Device Component

How to create a virtual audio device and stream audio input with it

Can I create an x86 based Android Virtual Device (AVD) on a 64 bit Windows 10? If so how?

cordova run (in real) android device using command line?

Reload a React Native app on an Android device manually via command line

gstreamer create virtual device on OSX

Create a Pixel 4 Virtual Device