运行Android模拟器的问题 - Xamarin,与2017年相比

时间:2017-10-01 05:21:20

标签: android android-emulator emulation

我试图运行一个空白的Xamarin跨平台应用程序。 UWP应用程序可以在模拟器中构建和运行。我取消选中UWP,只是构建和部署Android部分,模拟器出现黑屏,但它会挂起一段时间,然后vs说有错误。我不确定问题是什么。我关闭了hyper-v并安装了HAXM,在一个非常新的Windows 10上使用vs2017,使用x86或ARM模拟器做同样的事情。这是尝试x86模拟器的输出。

1>------ Build started: Project: App3.Android, Configuration: Debug Any CPU ------
1>  App3.Android -> C:\Users\Daniel\source\repos\App3\App3\App3.Android\bin\Debug\App3.Android.dll
1>    Processing: obj\Debug\res\layout\tabbar.xml
1>    Processing: obj\Debug\res\layout\toolbar.xml
1>    Processing: obj\Debug\res\values\styles.xml
1>    Processing: obj\Debug\res\layout\tabbar.xml
1>    Processing: obj\Debug\res\layout\toolbar.xml
1>    Processing: obj\Debug\res\values\styles.xml
2>Starting deploy VisualStudio_android-23_x86_phone ...
2>Starting emulator VisualStudio_android-23_x86_phone ...
2>D:\Program Files (x86)\Android\android-sdk\tools\emulator.EXE -partition-size 512 -no-boot-anim -avd VisualStudio_android-23_x86_phone -prop monodroid.avdname=VisualStudio_android-23_x86_phone
2>ERROR: resizing partition e2fsck failed with exit code 1emulator: WARNING: userdata partition is resized from 1024 M to 1025 M
2>
2>Hax is enabled
2>Hax ram_size 0x40000000
2>HAX is working and emulator runs in fast virt mode.
2>audio: Failed to create voice `goldfish_audio_in'
2>qemu-system-i386.exe: warning: opening audio input failed
2>emulator: Listening for console connections on port: 5554
2>emulator: Serial number of this emulator (for ADB): emulator-5554
2>Emulator VisualStudio_android-23_x86_phone is running.
2>Waiting for emulator to be ready...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>...
2>Emulator is not ready to be used.
2>Deploy failed on VisualStudio_android-23_x86_phone
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

有什么想法吗?

0 个答案:

没有答案