调试和运行 Mono-Droid 应用程序
我对为我的 Android 设备开发应用程序非常感兴趣。我按照本指南下载了 VS2010 所需的所有工具 - http://mono-android.net/Installation/ Visual_Studio 一切都很顺利。
现在,我第一次运行默认应用程序并将所有内容复制到模拟器中,它运行得非常完美。如果我对应用程序进行简单更改并按 F5 重新部署 - 它会启动应用程序,但是似乎仍然有旧版本并且不显示我的改变。我已经清理了解决方案并重建了应用程序,所以我不认为是这样。我还完全更改了代码(以防万一我做错了),但这也不起作用。哦,构建也成功了!
现在模拟器看起来有点不稳定和缓慢......但这是我正在做的事情吗?在按 F5 之前我需要清除某些地方吗?
I have been quite interested in developing an application for my Android device. I downloaded the all the required tools for VS2010 following this guide - http://mono-android.net/Installation/Visual_Studio and everything went pretty smoothly.
Now, the first time I ran the default application and it copied everything to the emulator, it ran perfectly. If I make a simple change to the application and hit F5 to redeploy - it starts the app, but it seems to have the old version on there still and doesn't show my changes. I've cleaned the solution and rebuilt the application, so I don't think its that. I've also completely changed the code (just in case it was something I was doing wrong), but that didn't work either. Oh and the build also succeeds!
Now the Emulator seems a bit flaky and slow...but is it something that I am doing? Is there somewhere I need to clear before hitting F5?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在进行部署时,是否显示“正在卸载以前的版本”?
另一件要尝试的事情是从模拟器中手动删除应用程序(设置 -> 应用程序 -> 管理应用程序 -> -> 卸载。然后再次部署并查看新版本是否正在复制。如果是,这应该缩小范围部署问题或构建问题。
When it is doing the deploy, does it say "Uninstalling the previous version"?
Another thing to try is to manually remove the app from the emulator (Settings -> Applications -> Manage Applications -> -> Uninstall. Then deploy again and see if the new version is copying. This should narrow down if it's a deployment issue or a build issue.