In the android/build.gradle file set the gradle version to 3.3.2 as follows:
dependencies { classpath 'com.android.tools.build:gradle:3.3.2' }
Tips and experience about developing websites with various technologies
dependencies { classpath 'com.android.tools.build:gradle:3.3.2' }
Caused by: java.lang.IllegalStateException: ensureInitializationComplete must be called after startInitialization
at io.flutter.view.FlutterMain.ensureInitializationComplete(FlutterMain.java:190)
at io.flutter.app.FlutterActivityDelegate.onCreate(FlutterActivityDelegate.java:156)
at io.flutter.app.FlutterActivity.onCreate(FlutterActivity.java:89)
at net.pawpalflutter.MainActivity.onCreate(MainActivity.java:10)
at android.app.Activity.performCreate(Activity.java:6672)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1140)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2612)
... 9 more