简体   繁体   English

使用vscode开发一个flutter app,但是在手机上停止调试打开app后,却加载了之前的版本

[英]Using vscode to develop a flutter app, but after stopping the debugging and opening the app on the phone, it loads the previous version

I am using Vscode for developing flutter apps.我正在使用 Vscode 开发颤振应用程序。 After running the app in debug mode on my phone and stopped the debugging, then opened the app on the phone, it loads the previous version instead of the current one.在我的手机上以调试模式运行应用程序并停止调试后,然后在手机上打开应用程序,它加载了以前的版本而不是当前版本。

Hot reloads/restarts don't exist after ending the debugging session.结束调试会话后不存在热重载/重启。

If you want to keep the updated app on the phone after debugging,如果您想在调试后将更新的应用程序保留在手机上,

  1. Stop the debug session停止调试会话
  2. Run the app again再次运行应用

Open AVD Manager.打开 AVD 管理器。 Select the emulator that you are running the app.选择您正在运行应用程序的模拟器。

WipeData and run again in same emulator. WipeData并在同一个模拟器中再次运行。

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

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