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 Features :
Flutter : v0.4.4 Beta
Console :
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.
I had the same error and it happened when I didn't write the main method. so do this
void main() => runApp(MyApp());
MyApp is my main class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With