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

b4qexyjb  于 2022-12-07  发布在  Android
关注(0)|答案(4)|浏览(200)

我尝试在Visual Studio 2015中使用Xamarin平台制作一个空白的Android应用程序。为此,我安装了VS2015Xamarin,并尝试为Android制作一个应用程序。然而,当我尝试运行它时,它在部署时给出错误,即使构建成功也不显示任何错误消息。我使用的是512 RAM的模拟器(AVD)。
我已经尝试清理解决方案,重建,并以管理员身份运行,但无法跟踪任何错误。我也在SO上搜索了提示,但找不到任何提示。

camsedfj

camsedfj1#

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)?
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.
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

l7mqbcuq

l7mqbcuq2#

尝试重新启动你的模拟器。我以前遇到过这个问题,每次都能重新启动。

n3schb8v

n3schb8v3#

选项1:右键单击您的Android项目,然后单击属性,然后转到Android选项菜单,然后取消选中“使用快速部署”
选项2:从设备中卸载旧版本的应用程序

r8xiu3jd

r8xiu3jd4#

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

相关问题