如何在模拟器上运行我的 flutter 应用程序?
我正在尝试在模拟器上运行我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有同样的问题。请尝试以下操作:
- 以管理员身份运行 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.