Flutter Build Error: R8 Missing Class? FIXED!
Are you facing the "Missing class proguard.annotation.Keep" or "Missing class proguard.annotation.KeepClassMembers" error while building your Flutter app? Don't worry! In this video, I will show you the easy fix step by step.
💡 What You’ll Learn in This Video:
✅ Why the R8 Missing Class Error Happens
✅ How to Update ProGuard Rules
✅ How to Properly Build Your Flutter App
✅ Fix Razorpay SDK & ProGuard Configurations
📌 Important Files to Edit:
● android/app/proguard-rules.pro
● android/app/build.gradle
Whatsapp Group: https://chat.whatsapp.com/KSwFH8ysgQ7...
Instagram:- / developer_ritesh
Linkedin:- / developerritesh
Discord:- / discord
---
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/developerritesh/Flutter2025/postork/build/app/outputs/mapping/debug/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:minifyDebugWithR8'.
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 22s
Error: Gradle task assembleDebug failed with exit code 1
Exited (1)
#Flutter #R8Error #ProGuard #FlutterErrors #Razorpay #FlutterFix #fluttertutorialforbeginners #fluttertutorials #Flutter #R8Error #ProGuard #FlutterErrors #Razorpay #FlutterFix #FlutterTutorial
#FlutterBuildError #FlutterProGuard #FixR8Error #AndroidBuildError #FlutterDevelopment
#FlutterHindi #RazorpayFlutter #FlutterMinification #FlutterDebugging #ProGuardRules
#FlutterTips #FixGradleError #FlutterBuildFail #AndroidStudio #MobileAppDevelopment
{ Thanks for watching and visit my channel }
[ Subscribe us for latest updates & upcoming videos ]
---------- { DEVELOPER RITESH } ----------