Description
Description
While building the release APK for the example project, the build process fails during the R8 minification step. The error indicates missing java.beans classes that are referenced by the SnakeYAML library. Since java.beans is not supported in the Android runtime, the following error is encountered:
Error Log:
ERROR: Missing classes detected while running R8.
Missing class java.beans.BeanInfo
Missing class java.beans.FeatureDescriptor
Missing class java.beans.IntrospectionException
Missing class java.beans.Introspector
Missing class java.beans.PropertyDescriptor
Steps to Reproduce
Clone the yolo-flutter-app repository.
Navigate to the example directory.
Run the following commands to build the release APK:
flutter clean
flutter build apk --release
Observe the build failure during the :app:minifyReleaseWithR8 task.
Expected Behavior
The release APK should be generated successfully without build errors.
Actual Behavior
The build fails with missing classes during the R8 minification step.
Environment
Flutter version: 3.27.1
Android Studio: 2024.1
Kotlin version: 1.7.0 or above
Android Gradle Plugin: 8.0.0

