简体   繁体   English

适用于Android的Visual Studio模拟器 - 项目不会部署

[英]Visual Studio Emulator for Android - Project does not Deploy

Windows 8.1 Windows 8.1

Visual Studio 2015 RC Visual Studio 2015 RC

Android Application API Level 21 (Xamarin.Android v5.0 Support) Android应用程序API等级21(Xamarin.Android v5.0支持)

I recently had to rebuild a new PC as my old one had major problems. 我最近不得不重建一台新PC,因为我的旧PC存在重大问题。 On this new PC, the project compiles and the emulator launches. 在这台新PC上,项目编译并启动模拟器。 However, during the emulator OS load screen I receive a message stating: 但是,在模拟器OS加载屏幕期间,我收到一条消息,指出:

"This pre-release version of the Visual Studio Emulator for Android will expire in 3 day(s), 13 hour(s). Please upgrade to a newer version." “这个适用于Android的Visual Studio模拟器的预发布版本将在3天(13),13小时后到期。请升级到更新的版本。”

After I click "OK" the emulator OS finishes loading and I receive the message "2>Emulator launched successfully." 单击“确定”后,模拟器操作系统完成加载,并收到消息“2>模拟器成功启动”。 in the Visual Studio Output window. 在Visual Studio输出窗口中。

On my previous PC I did not receive the pop during the emulator's load and after the emulator finished loading it would then deploy the application to the emulator and begin debugging. 在我之前的PC上,我没有在模拟器加载过程中收到弹出窗口,在模拟器完成加载后,它会将应用程序部署到模拟器并开始调试。 However, after the emulator finishes loading on my new PC, no further output is displayed in Visual Studio and the green load bar in the bottom right corner of Visual Studio sits at about 30%. 但是,在模拟器在我的新PC上完成加载后,Visual Studio中不再显示输出,Visual Studio右下角的绿色加载条大约为30%。

I have been unable to find any information online related to the popup message I receive during the emulators load screen. 我无法在线查找与模拟器加载屏幕中收到的弹出消息相关的任何信息。 I cannot find any update for the emulator or Visual Studio. 我找不到任何模拟器或Visual Studio的更新。 I have uninstalled and re-installed Android Studio, Xamarin Studio, and Visual Studio twice with no change. 我已经卸载并重新安装了Android Studio,Xamarin Studio和Visual Studio两次,没有任何变化。

How do I update to the latest version? 如何更新到最新版本?

Why would Visual Studio not deploy the project when the debugger begins? 为什么Visual Studio在调试器开始时不会部署项目?

我遇到了一些问题,我可以通过从命令行手动运行adb connect emulatorhost:5555来修复它。

I found that I had to launch Visual Studio with elevated permissions. 我发现我必须使用提升的权限启动Visual Studio。 I changed the properties for the shortcut and checked the field "Run as Administrator" and all is well again. 我更改了快捷方式的属性并选中了“以管理员身份运行”字段,一切都很好。

Have the same Problem, elevated permissions not works. 有相同的问题,提升的权限不起作用。 Run adb from commandline is alreay connected. 从命令行运行adb是alreay connected。

The new update from Xamiran (version 4.0.4.4), fix this problem for me. 来自Xamiran(版本4.0.4.4)的新更新为我解决了这个问题。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio不会在Android模拟器上部署项目 - Visual Studio Won't Deploy Project On Android Emulator Xamarin.Android Projects未能在Android的visual studio模拟器中部署 - Xamarin.Android Projects failed to deploy in visual studio emulator for android 适用于Android的Visual Studio模拟器不能将我的项目上传到模拟器 - Visual Studio Emulator for Android no upload my project to the emulator 适用于Android的Visual Studio模拟器不支持 - Visual studio emulator for android does not support 为什么在选择设备时 Visual Studio 会尝试部署到模拟器 - Why does Visual Studio attempt to deploy to emulator when device is selected Visual Studio for Mac无法部署到兼容的Android模拟器 - Visual Studio for Mac can't deploy to compatible android emulator 适用于Android的Visual Studio模拟器 - Visual Studio Emulator for Android 错误类型3。活动类{com.project / com.project.MainActivity}在本机响应中不存在(适用于Android的Visual Studio EMulator) - Error type 3. Activity class {com.project/ com.project.MainActivity} does not exist in react native (Visual studio EMulator for Android) Xamarin 项目未显示在 Visual Studio Android 仿真器上 - Xamarin project is not showing up on Visual Studio Android Emulator Xamarin.Forms Visual Studio 2017项目未部署 - Xamarin.Forms Visual Studio 2017 project does not deploy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM