Xamarin-Visual Studio卡在zipalign.exe [英] Xamarin - Visual Studio stuck at zipalign.exe
问题描述
当尝试在Android设备上部署应用程序时,VS停留在这里:
When trying to deploy an app in Android Device, VS is stuck here:
1> C:\ Users \ George \ AppData \ Local \ Android \ android-sdk \ build-tools \ 23.0.1 \ zipalign.exe 4"C:\ Users \ George \ Documents \ Visual Studio 2015 \ Projects \ SGUotA-Xamarin \ BBXamarin \ BBXamarin \ BBXamarin.Droid \ bin \ Debug \ BBXamarin.Droid-Signed-Unaligned.apk "bin \ Debug \ BBXamarin.Droid-Signed.apk"
1>C:\Users\George\AppData\Local\Android\android-sdk\build-tools\23.0.1\zipalign.exe 4 "C:\Users\George\Documents\Visual Studio 2015\Projects\SGUotA-Xamarin\BBXamarin\BBXamarin\BBXamarin.Droid\bin\Debug\BBXamarin.Droid-Signed-Unaligned.apk" "bin\Debug\BBXamarin.Droid-Signed.apk"
有人可以为此提出解决方案吗? 问题的屏幕截图
Can anyone propose a solution for this? screenshot of the problem
推荐答案
我在使用任何模拟器的Visual Studio 2015中都遇到了相同的问题.就我而言,事实证明我不得不更改包装选项才能解决该问题.
I came across the same issue in Visual Studio 2015 using any emulator. In my case, it turned out that I had to change a packaging option to get rid of the problem.
- 转到您的项目设置.
- 选择 Android选项.
- 选择标签包装.
- 取消选择使用快速部署选项,如屏幕截图所示.
- 按F5键,然后就可以了:-)
- Go to your project settings.
- Select Android Options.
- Choose the tab Packaging.
- Deselect the Use Fast Deployment option as shown in the screenshot.
- Hit the F5 key and there you go :-)
部署似乎要慢一些,但是,模拟器执行软件的速度要快得多.享受吧!
The deployment appears to be a touch slower, however, the emulator executes the software much faster. Enjoy!
这篇关于Xamarin-Visual Studio卡在zipalign.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!