Xamarin.Android:无法调试 [英] Xamarin.Android: Can not debug
问题描述
我在使用 Visual Studio Community 2015 和 Xamarin 时遇到问题.
I have a problem with Visual Studio Community 2015 and Xamarin.
当我想调试我的程序时,虚拟设备启动但应用程序没有打开.
When I want to debug my Program the virtual device start but the App does not open.
这是日志:
1>"aapt.exe" exited with code -1073741819.
1>The file "obj\Debug\android\bin\packaged_resources" does not exist.
我不知道如何解决这个问题,希望你能帮助我.
I don´t know how to fix this problem, I hope you can help me.
完整日志:此处
推荐答案
这是目前已知的问题,Android SDK Build-tools 的版本太新.使用24.x版本会出现这个错误,因为Xamarin兼容23.x
This is a known issue currently, where a too new version of Android SDK Build-tools. This error will occur when version 24.x is used, due to Xamarin being compatible with 23.x
我们的发布博客上提供了一份技术公告,其中描述了问题和解决方案:
We have a technical bulletin available on our release blog, which describes the issue and the solution:
推荐的修复:使用卸载 Android SDK Build-tools 版本 24Android SDK 管理器.
Recommended fix: Uninstall Android SDK Build-tools version 24 using the Android SDK Manager.
另一个单独的问题是 Android SDK 的第 24 版Build-tools 包需要 Java JDK 1.8 或更高版本.这可能导致在至少 1 个错误:
Another separate issue is that version 24 of the Android SDK Build-tools package requires Java JDK 1.8 or higher. This can cause at least 1 error:
java.lang.UnsupportedClassVersionError: com/android/dx/command/Main :不支持的主要.次要版本 52.0"
"java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0"
来源:https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/
谢谢!
这篇关于Xamarin.Android:无法调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!