如何在模拟器上运行我的 flutter 应用程序?

发布于 2025-01-16 15:32:46 字数 233 浏览 3 评论 0原文

我正在尝试在模拟器上运行我的 flutter 应用程序,但它不起作用,我正在使用 Visual Studio Code (vscode),当我选择“运行而不调试”时,它会向我显示模拟器仅当我的应用程序无法使用它时(就像普通手机一样)。我尝试创建另一个模拟器,但它仍然无法工作,我还尝试删除模拟器并重新创建它,但它仍然无法工作!我确信我的代码 100% 正确,因为它与我的朋友完美配合。

请问我该如何解决这个问题?

I'm trying to run my flutter application on an emulator but it doesn't work, I'm using Visual Studio Code (vscode) and when I choose "run without debugging" it show me the emulator only without my application working on it (like a normal phone). I tried to create another emulator and it still not working, I also tried to delete the emulator and recreating it and it still not workimg too! I'm sure my code is correct 100% because it works with my friend perfectly.

How can I fix this problem please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一个人练习一个人 2025-01-23 15:32:46

我也有同样的问题。请尝试以下操作:

- 以管理员身份运行 Android Studio 和 VS Code。

- 如果上述方法不起作用,请卸载并重新安装模拟器。

-最佳替代方案:使用 Android 手机并将其连接到 PC (https://youtu .be/IV20QYaae3c)并将其用作模拟器。这解决了我的问题。我用手机作为模拟器。

I had the same problem. Try the following:

-Run Android Studio and VS Code as administrator.

-If the above does not work, uninstall and reinstall emulators.

-The best alternative: Use your android phone and connect it to the PC (https://youtu.be/IV20QYaae3c) and use it as an emulator. This fixed the problem for me. I use my phone as an emulator.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文