简体   繁体   English

Flutter 应用程序未在运行时启动

[英]Flutter application not launching on run

I was working on this application in Android Studio which was running fine on the emulator until today.我一直在 Android Studio 中开发这个应用程序,直到今天它在模拟器上运行良好。 I did not do any changes to the code and settings whatsoever and now when I run it, the console shows nothing nor does the emulator and after 2-3 seconds the run button goes green again.我没有对代码和设置做任何更改,现在当我运行它时,控制台没有显示任何内容,模拟器也没有显示,2-3 秒后运行按钮再次变为绿色。

I've tried connecting it to a real device, changed the emulator, wiped the emulator's data, ran flutter doctor , cleared Flutter cache, and even updated the Android Studio app, but it's still not running.我尝试将它连接到真实设备,更改模拟器,擦除模拟器的数据,运行flutter doctor ,清除 Flutter 缓存,甚至更新了 Android Studio 应用程序,但它仍然没有运行。 And most importantly it's not even giving me an error so that I can look up for it.最重要的是,它甚至没有给我一个错误,以便我可以查找它。

The app did successfully run a couple of times today before this issue happened.在此问题发生之前,该应用程序今天确实成功运行了几次。 I am new to Android Studio and I don't know what else I can do to fix this.我是 Android Studio 的新手,我不知道我还能做些什么来解决这个问题。

从顶部菜单中,导航到Tools -> Flutter并单击Flutter Clean ,然后再次尝试运行。

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

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