TERMINAL
~/StudioProjects/hsp_mgmt_kamranhccp
flutter build apk --release
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /home/kamranhccpszorin/StudioProjects/hsp_mgmt_kamranhccp/build/app/outputs/mapping/release/missing_rules.txt. ERROR: R8: Missing class proguard.annotation.Keep (referenced from: com.razorpay.AnalyticsEvent and 8 other contexts) Missing class proguard.annotation.KeepClassMembers (referenced from: com.razorpay.AnalyticsEvent and 8 other contexts)
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:minifyReleaseWithR8'.
A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable 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 with --scan to get full insights. Get more help at https://help.gradle.org.
BUILD FAILED in 1m 24s Running Gradle task 'assembleRelease'... 85.0s Gradle task assembleRelease failed with exit code 1
WHAT I AM FACING
I am running my hospital management flutter app with payment integration with firestore as database. While getting release apk, I get this error. Anyone facing issue like this with "with Progauard missing referecing to razorpay."