2017-04-01 141 views
2

我已经安装了Xamarin SDKVS2015。 从New Project我已经创建Android Blank Project现在它成功地建立。无法运行适用于android的visual studio 2015模拟器的应用程序

当我点击F5 to run使用simulator它成功加载模拟器,但它不运行应用程序内部。

它卡住了该行中输出后Windows的

1> C:\ Users \用户测试\应用程序数据\本地\ Xamarin \ MonoForAndroid \ AndroidSDK \构建工具\ 23.0.2 \ zipalign.exe 4“C:\ Users \ test \ documents \ visual studio 2015 \ Projects \ App2 \ App2 \ bin \ Debug \ App2.App2-Signed-Unaligned.apk” “bin \ Debug \ App2.App2-Signed.apk “

我试着像 HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Android SDK Tools key, Path value, in the registry, pointing to the Android SDK root directory.

所有给出的解决方案

但没有运气,任何人都可以帮助我吗?

Is it an issue of pre-configured virtual devices Android_Accelared_x86 API23?

enter image description here

+0

你检查答案在[Xamarin - Visual Studio卡在zipalign.exe](http://stackoverflow.com/questions/40720602/xamarin-visual-studio-stuck-at-zipalign-exe?rq= 1)? – oldbam

+0

也可以试试“Build - > Deploy Solution”,还是一样? (当我可以在部署后手动运行应用程序时,曾经遇到过一次情况,但无法通过Build - > Debug运行它) – oldbam

回答

0

在其他相关的问题的帖子没有列出可能有很多的解决方案。

我解决它使用下面的一个 -

Open Android Emulator Manager

Start Android Virtual Device

Once emulator is ready then run your application. 

它的工作原理。 enter image description here

相关问题