简体   繁体   中英

Unable to run App in Visual Studio 2015 emulator for Android

I have installed Xamarin SDK and VS2015. From "New Project" I have created "Android Blank Project" and now it builds successfully.

When I hit F5 to run using simulator it load simulator successfully but it does not run application inside.

It gets stuck after this line in output windows:

1>C:\\Users\\test\\AppData\\Local\\Xamarin\\MonoForAndroid\\AndroidSDK\\build-tools\\23.0.2\\zipalign.exe 4 "C:\\Users\\test\\documents\\visual studio 2015\\Projects\\App2\\App2\\bin\\Debug\\App2.App2-Signed-Unaligned.apk" "bin\\Debug\\App2.App2-Signed.apk"

I tried all given solution like HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Android SDK Tools key, Path value, in the registry, pointing to the Android SDK root directory. But no luck.

Is it an issue of pre-configured virtual devices Android_Accelerated_x86 API23?

在此处输入图片说明

There could be many solutions as listed in Other related question posts.

I resolved it using one below -

Open Android Emulator Manager

Start Android Virtual Device

Once emulator is ready then run your application.

It works. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM