在设备 "timeout waiting for the application to start" 上启动颤振应用程序时出现问题



一段时间后,我的 Flutter 应用程序停止在设备上构建。我尝试了flutter clean,使缓存失效并在Android Studio中重新启动,重新启动设备和Android Studio,没有任何帮助:(。不过,该应用程序仍然可以在模拟器上构建。

运行日志:

Launching lib/main.dart on Mi A1 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...
timeout waiting for the application to start

发现问题。应用程序是为手机上的其他用户安装的,在我为所有用户卸载它后,问题消失了。

如果您使用的是安卓工作室,一个简单的 使缓存失效/重新启动...会的。我试过了,它有效。

转到文件>使缓存失效/重新启动...

点击pubspec.yaml,然后点击包get...它解决了我的

只需等待一段时间,而不是多次取消。它解决了这个问题。

最新更新