简体   繁体   中英

Debuging xamarin app using Visual Studio 2017

I'am new in Xamarin. I want create new app using Xamarin in VS 2017. My steps: 1) Install VS 2017 - community (Choose Item "Mobile development with .NET") 2) File > New > Project 3) Visual C# 4) Android > Blank App (Android)

After thet I configuration AVD.

1) Tools > Android > Android Emulator Manager
2) Create
3) I set name "myAndroid"
4) Device = Nexus 6
5) Target = Android 7.1.1
6) CPU/ABI = Google APIs ARM (arm64 -vBa)
7) Skin = No skin
8) I check Use Host GPU

After configuration AVD I opened my Main.axml, and insert button. When i start debuging I see this message.

在此处输入图片说明

I click Ok and waiting 5 minuts and see this. 在此处输入图片说明

I want start my project not this. Please helpe me.

The problem is that the android emulators run incredibly slow when not using hardware acceleration. For some reason this does not come with visual studio. It's quick and easy to obtain this hardware acceleration. Google HAXM and download the installer. And as simple as that, the emulators will run fast enough that you can actually work on your project. However, you need to use the 86x bit versions of the emulators that came with visual studio for HAXM to work.

As @Launch9 suggested - always use x86 emulators to debug. You can download x86 image from Android SDK manager. You can also use android virtual machines on Genymotion, since it can emulate different environmental conditions like connection quality, accelerometer and etc Last time I've checked they had free options for individuals. Main advice - always try your code on real devices.

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