简体   繁体   English

Xamarin Android Visual Studio让部署覆盖应用程序

[英]Xamarin Android Visual Studio let deploy override app

I use visual studio 2015 with xamarin android for my project. 我将Visual Studio 2015与xamarin android一起用于我的项目。 I build and debug on a Samsung SM-G389F(Android 6.0 - API 23). 我在Samsung SM-G389F(Android 6.0-API 23)上进行构建和调试。 Everytime I build my project and deploy it to my device it will not override the previously build app. 每当我构建项目并将其部署到设备上时,它都不会覆盖以前构建的应用程序。 I have to manually delete the existing app in order to see some changes. 我必须手动删除现有应用程序才能看到一些更改。

Is there a way in visual studio to let the app be successfully deployed? Visual Studio中是否有一种方法可以让应用成功部署? Is this a bug or are my settings wrong? 这是错误还是我的设置错误?

thanks. 谢谢。

Sounds like you might have Fast assembly deployment enabled and it's not working correctly. 听起来您可能启用了“快速程序集”部署,但无法正常工作。 Here's what to do: 这是做什么的:

  1. Go to project's properties and Android Options tab. 转到项目的属性和“ Android选项”标签。
  2. Turn off Use Fast Deployment 关闭使用快速部署
  3. Uninstall the app completely from the device. 从设备上完全卸载应用程序。
  4. Rebuild the whole project (rebuild also does cleans the project) 重建整个项目(重建也可以清理项目)
  5. Try to deploy again 尝试再次部署

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM