Flutter无法准备运行隔离 [英] Flutter Could not prepare to run the isolate

查看:409
本文介绍了Flutter无法准备运行隔离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Android Studio启动了一个扑朔迷离的项目. android模拟器顺利打开了该项目.当我打开Ios模拟器时,项目运行顺利.当我再次运行android模拟器时,项目未运行.感谢您的帮助.

I started a flutter project using Android studio. The android emulator opened the project smoothly. When I opened the Ios emulator, the project worked smoothly. When I ran the android emulator again, project isn't runed . Thanks for your help.

Android Studio功能:

  • Android Studio 3.0
  • 内部版本#AI-171.4408382,于2017年10月20日构建
  • JRE:1.8.0_152-release-915-b08 x86_64
  • JVM:JetBrains s.r.o的OpenJDK 64位服务器VM
  • Mac OS X 10.12.6

Flutter: v0.4.4 Beta

Flutter : v0.4.4 Beta

控制台:

Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
I/FlutterActivityDelegate( 2747): onResume setting current activity to this
E/flutter ( 2747): [ERROR:flutter/shell/common/engine.cc(147)] Could not prepare to run the isolate.
E/flutter ( 2747): [ERROR:flutter/shell/common/engine.cc(112)] Engine not prepare and launch isolate.
E/flutter ( 2747): [ERROR:flutter/shell/platform/android/android_shell_holder.cc(138)] Could not launch engine in configuration.
Syncing files to device Android SDK built for x86...
Application finished.

推荐答案

我遇到了相同的错误,并且在我没有编写main方法时发生了. 这样做

I had the same error and it happened when I didn't write the main method. so do this

void main() => runApp(MyApp());

MyApp是我的主要课程

MyApp is my main class

这篇关于Flutter无法准备运行隔离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆