Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio C++ and Android Emulator?

I want to make a game for android, but I don't want to program in java.

Visual Studio have support for Android applications in C++, When I start / debug application it say:

Severity    Code    Description Project File    Line
Error       Error installing the package. The device '' is invalid or not running.  Please switch to another device, or use the Android Virtual Device (AVD) Manager to start a compatible emulator, or connect a compatible Android device.    Android1_test.Packaging     0

I have installed xamarin emulator but I can't debug my project into that, and i don't have installed "Microsoft Visual Studio Emulator for Android", when I try to install it I get an error "Setup blocked" and this:

This computer does not support the Visual Studio Emulator for Android, which requires a 64-bit Windows 8/8.1/10 Pro/Enterprise edition or Window Server 2012 or above and a computer that supports Hyper-V. For more information, see System Requirements for Visual Studio Emulator for Android (https://msdn.microsoft.com/en-us/library/mt228280.aspx).

Do I need to install "Hyper-V server 2012..." or something?

EDIT: I have Windows 10 Home and it doesn't support Hyper-V. Thanx you Microsoft (Windows 10 Pro ($129.99) support Hyper-V)

like image 887
iUuax Avatar asked Dec 03 '25 09:12

iUuax


1 Answers

Android with API level 9, released a way to create true C++ applications. This methodology is called NativeActivity and many popular game engines like Unreal and others use this mechanism. Visual Studio comes with the Visual Studio Android Emulator which you can download for an OOTB experience.

Hopefully this helps, if you still have other questions or issues with your experience please feel free to contact at [email protected].

The enter image description here

like image 195
Ankit Asthana Avatar answered Dec 04 '25 22:12

Ankit Asthana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!