I tried to get APK of my flutter app using
flutter build APK
but it returned this error. I have no idea what does it means. I will be glad if you try to help me. comment in this post if you need any extra details to solve the error
Running Gradle task 'assembleRelease'... R8: Type com.google.firebase.iid.zzbb is referenced as an interface from com.google.firebase.messaging.zzf.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithR8ForRelease'. com.android.tools.r8.CompilationFailedException: Compilation failed to complete
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run wit h --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 7m 32s Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done 456.4s (!) [!] The shrinker may have failed to optimize the Java bytecode. To disable the shrinker, pass the
--no-shrinkflag to this command. To learn more, see: https://developer.android.com/studio/build/shrink-code Gradle task assembleRelease failed with exit code 1