

I hope you have created the flavor properly for your project. The issue is because you have not mentioned the flavorDimensions in android/app/adle/ LocalPropertiesFile.withReader("UTF-8") ĭef flutterSdkPath = properties.getProperty("flutter.sdk")Īssert flutterSdkPath != null, "flutter.sdk not set in local.properties"Īpply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_adle"Īfter these two files in are in place, Android builds should complete properly. adle is important for its including of :app and setting the Flutter SDK location: include ':app'ĭef localPropertiesFile = new File(rootProject.projectDir, "local.properties") Gradle.properties is important for Android app SDK levels beyond 28 which replaces the old Android Support Libraries with AndroidX: eAndroidX=true

idea/libraries/KotlinJavaRuntime.xml (created) idea/runConfigurations/main_dart.xml (created) Īndroid/your_project_android.iml (created)

The output will be similar: $ flutter create. This creates a couple key files if missing: Inside the project directory, in a terminal (re-) run: Some required files for an Android build were not committed to repository.Īndroid builds would fail with: task 'assembledebug' not found in root project 'android' I cloned a Flutter project from my git remote repository to run on a different machine.
