简体   繁体   English

在Visual Studio 2015中使用Xamarin android应用程序的部署错误

[英]Deployment error with Xamarin android application in Visual studio 2015

I am trying to make a blank Android application with Xamarin platform in Visual Studio 2015 . 我试图在Visual Studio 2015使用Xamarin平台制作一个空白的Android应用程序。 For that I have installed VS2015 with Xamarin and tried to make an application for Android . 为此,我已经安装了VS2015Xamarin并尝试为Android制作应用程序。 However when I try to run it, it gives an error at deployment without showing any error message even if the build succeeded. 但是,当我尝试运行它时,它会在部署时出错,即使构建成功也不会显示任何错误消息。 I am using Emulator(AVD) by 512 RAM. 我正在使用512 RAM的仿真器(AVD)。

I have tried to clean solution, rebuild, and run as administrator but could not trace any error. 我已尝试清理解决方案,重建并以管理员身份运行但无法跟踪任何错误。 I have also searched on SO for the hints but could not find any. 我也搜索了SO的提示,但找不到任何。

这是错误消息

First of all: Do you want it to deploy on a real device or on Emulator? 首先:您希望它部署在真实设备上还是模拟器上? Second: Have you openend the Android Device Logging (Logcat)? 第二:你打开Android设备日志 (Logcat)吗?

Third: I assume you want to deploy it on a real device and no errors in the logs. 第三:我假设您希望将其部署在真实设备上,并且日志中没有错误。

Visual Studio 2015 has a very "interesting" behaviour on deploying to my nexus test device. Visual Studio 2015在部署到我的nexus测试设备时有一个非常“有趣”的行为。

The deploy only works if I "Clean" the solution first and Run it afterwards. 部署仅在我首先“清理”解决方案并随后运行时才有效。 If I make a clean and / or a rebuild and then run it, the deploy fails :(. 如果我进行清理和/或重建然后运行它,部署将失败:(。

So please try to clean und run it afterwards and see if the deploy is successful. 因此,请尝试清理并在之后运行它,看看部署是否成功。 Here is my AVD Configuration 这是我的AVD配置

Try to restart your emulator. 尝试重新启动模拟器。 I've had this issue before with emulators, and a restart worked everytime. 我以前在使用模拟器时遇到过这个问题,并且每次重启都会有效。

您需要打开ADB并尝试使用ADB Connect(您的仿真器IP地址)连接您的仿真器

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

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