Launching lib/main.dart on SM G965F in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Note: /Users/rranjan/work/iS/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_share_me-0.2.1/android/src/main/java/zhuoyuan/li/fluttershareme/FlutterShareMePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
warning: unknown enum constant ThreadMode.MAIN
reason: class file for org.greenrobot.eventbus.ThreadMode not found
1 warning
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
com.android.build.api.transform.TransformException: Error while generating the main dex list.
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.
This is the error while doing a Android build.