我使用 Android Studio 开始了一个 flutter 项目。安卓模拟器顺利打开项目。当我打开 Ios 模拟器时,项目运行顺利。当我再次运行 android 模拟器时, project is not runed 。感谢您的帮助。
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 位服务器虚拟机
- Mac OS X 10.12.6
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 方法时发生了。 这样做吧
void main() => runApp(MyApp());
MyApp is my main class
关于android - Flutter 无法准备运行隔离,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50654820/