Closed zaid13 closed 3 years ago
solved
upgrade your
classpath 'com.android.tools.build:gradle:3.4.2' classpath 'com.google.gms:google-services:4.3.5'
add android/app/proguard-rules.pro :
-ignorewarnings -keep class androidx.lifecycle.DefaultLifecycleObserver -keep class { public private ; }
in app/build.gradle
add buildTypes { release { signingConfig signingConfigs.debug useProguard true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
import io.flutter.embedding.engine.plugins.lifecycle.FlutterLifecycleAdapter; ^ symbol: class FlutterLifecycleAdapter location: package io.flutter.embedding.engine.plugins.lifecycle 1 error
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':compileReleaseJavaWithJavac'.
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.
Get more help at https://help.gradle.org
BUILD FAILED in 2s
The plugin google_maps_flutter could not be built due to the issue above.
this is what my error looks like i have updgraded my flutter version and even started new project but i see this error