Visualstudio-docs: Error at compiling time

Created on 27 Dec 2018  Â·  7Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

Error al instalar el paquete. El dispositivo '' no es válido o no se ejecuta. Cambie a otro dispositivo o use Android Virtual Device (AVD) Manager para iniciar un emulador compatible, o conecte un dispositivo con Android compatible. MyAndroid.Packaging 0


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cba support-request visual-studio-dev1prod

Most helpful comment

you ether need to install the android emulator in extensions, get tools and features in the tools menu, or connect an android device.

All 7 comments

The text says:

Error installing package. The ' ' device is invalid or does not run. Switch to another device or use Android Virtual devices (AVD) Manager to start a compatible emulator, or connect a device with compatible Android. MyAndroid.Packaging 0

you ether need to install the android emulator in extensions, get tools and features in the tools menu, or connect an android device.

Which emulator should you install, I installed this, doesn't work keeps loading (Can I ask this here?)

Emulators installed

Google Android Emulator (API Level 23) (global install)
Intel Hardware Accelerated Execution Manager (HAXM) (global install)

not installed

Google Android Emulator (API Level 23) (local install)
Google Android Emulator (API Level 25)
Google Android Emulator (API Level 27)
Intel Hardware Accelerated Execution Manager (HAXM) (local install)

@rademaker13 The Google emulators should work fine. Choose one with the minimum API Level you intend to support. You'll need to configure the HAXM support in the control panel, which will disable Windows VM support and requires at least one reboot. There is sometimes flakiness in getting the emulators recognized by the IDE. A reboot will often fix this issue. One annoyance is that the Google Store is only supported by some emulators. If that matters to you, you'll have to pay attention to which emulators include that support, which may be in a later API level than your app supports.

I have a Ryzen 5 2400

  • Normally AMD is supported,
  • Google Android Emulator (API Level 23) (global install) so this should be fine?
  • which should you pick, x64, x86, I think x86?
  • kind of build? Native only?
  • Is there more information on this somwhere?

@rademaker13
HAXM doesn't work on AMD, but there are other options. The Android documentation here on Configuring VM acceleration
is probably your best source of information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wellwind picture wellwind  Â·  3Comments

nitinjs picture nitinjs  Â·  3Comments

realbart picture realbart  Â·  3Comments

michael-hawker picture michael-hawker  Â·  4Comments

DaanV2 picture DaanV2  Â·  4Comments