E/flutter: [ERROR:flutter/runtime/dart_vm_data.cc(18)] VM snapshot invalid and could not be inferred from settings. E/flutter: [ERROR:flutter/runtime/dart_vm.cc(250)] Could not setup VM data to bootstrap the VM from. E/flutter: [ERROR:flutter/runtime/dart_vm_lifecycle.cc(84)] Could not create Dart VM instance. A/flutter: [FATAL:flutter/shell/common/shell.cc(274)] Check failed: vm. Must be able to initialize the VM.
release { // Enables code shrinking, obfuscation, and optimization for only // your project's release build type. minifyEnabled true // Enables resource shrinking, which is performed by the // Android Gradle plugin. // NOTE: The resource shrinker can't be used for libraries. shrinkResources isBuiltAsApp(project) // Fallback to `android/app/proguard-rules.pro`. // This way, custom Proguard rules can be configured as needed. proguardFiles project.android.getDefaultProguardFile("proguard-android.txt"), flutterProguardRules, "proguard-rules.pro" } }
Could not determine the dependencies of task ':app:compileDevCeshiJavaWithJavac'. > Could not resolve all task dependencies for configuration ':app:devCeshiCompileClasspath'. > Could not resolve project :flutter. Required by: project :app > Unable to find a matching variant of project :flutter: - Variant 'debugApiElements' capability com.example.my_flutter:flutter:1.0: - Incompatible attribute: - Required com.android.build.api.attributes.BuildTypeAttr 'ceshi' and found incompatible value 'debug'. - Other attributes: - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required. - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'. - Required environment 'dev' but no value provided. - Required org.gradle.usage 'java-api' and found compatible value 'java-api'. - Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided. - Variant 'debugRuntimeElements' capability com.example.my_flutter:flutter:1.0: - Incompatible attribute: - Required com.android.build.api.attributes.BuildTypeAttr 'ceshi' and found incompatible value 'debug'. - Other attributes: - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required. - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'. - Required environment 'dev' but no value provided. - Required org.gradle.usage 'java-api' and found compatible value 'java-runtime'. - Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided. - Variant 'profileApiElements' capability com.example.my_flutter:flutter:1.0: - Incompatible attribute: - Required com.android.build.api.attributes.BuildTypeAttr 'ceshi' and found incompatible value 'profile'. - Other attributes: - Found com.android.build.api.attributes.VariantAttr 'profile' but wasn't required. - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'. - Required environment 'dev' but no value provided. - Required org.gradle.usage 'java-api' and found compatible value 'java-api'. - Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided. - Variant 'profileRuntimeElements' capability com.example.my_flutter:flutter:1.0: - Incompatible attribute: - Required com.android.build.api.attributes.BuildTypeAttr 'ceshi' and found incompatible value 'profile'. - Other attributes: - Found com.android.build.api.attributes.VariantAttr 'profile' but wasn't required. - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'. - Required environment 'dev' but no value provided. - Required org.gradle.usage 'java-api' and found compatible value 'java-runtime'. - Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided. - Variant 'releaseApiElements' capability com.example.my_flutter:flutter:1.0: - Incompatible attribute: - Required com.android.build.api.attributes.BuildTypeAttr 'ceshi' and found incompatible value 'release'. - Other attributes: - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required. - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'. - Required environment 'dev' but no value provided. - Required org.gradle.usage 'java-api' and found compatible value 'java-api'. - Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided. - Variant 'releaseRuntimeElements' capability com.example.my_flutter:flutter:1.0: - Incompatible attribute: - Required com.android.build.api.attributes.BuildTypeAttr 'ceshi' and found incompatible value 'release'. - Other attributes: - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required. - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'. - Required environment 'dev' but no value provided. - Required org.gradle.usage 'java-api' and found compatible value 'java-runtime'. - Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.