![](/img/trans.png)
[英]Xamarin - Android - Visual Studio - The application could not be started
[英]Visual Studio Xamarin: Could not connect to the debugger
我正在使用 Visual Studio Community 2015 Update 3 和 Visual Studio Emulator for Android(API 级别 19)。 一切正常,但自上次 Xamarin 更新以来,我无法部署到 Visual Studio 模拟器。
我单击 run at visual studio 并将应用程序部署到模拟器(我无法在应用程序抽屉中看到它),然后它启动应用程序。 但是应用程序立即关闭,visual studio 在 output 说:
Could not connect to the debugger.
我已经尝试过的解决方案(没有成功):
编辑:在我的真手机上我可以调试这个应用程序。
EDIT2: 这是 logcat output
我以前遇到过这个问题。 我的问题是模拟器很旧,无法正确加载,而且速度很慢。 我建议升级到其他模拟器或只是使用手机进行调试。 如果需要,您可以尝试在发布中运行它,然后查看它是否运行。 如果没有从AVD Manager创建新的模拟器。
我遇到了同样的问题,这真的很令人沮丧。 我在 Visual Studio 2019 和 Visual Studio 2022 上都遇到了问题。
我几乎尝试了 web 上的所有解决方案,但没有一个对我有用:
adb -s 10.0.2.2:5554 root
)我真的没有解决方案可以尝试,然后......我只是重置了我的模拟器代理配置(一直工作正常)切换到“默认 Android Studio HTTP 代理设置”,现在我可以调试我的应用程序了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.