Below issue facing:
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.android.exoplayer2.ui.package-info found in modules classes.jar (com.google.android.exoplayer:exoplayer-common:2.14.1) and classes.jar (com.google.android.exoplayer:exoplayer-ui:2.12.3)
Go to the documentation to learn how to Fix dependency resolution errors.
- 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.
pubspec.yaml:
name: gym_admin
description: A new Flutter application.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.14.3 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.3
http: ^0.13.4
intl: ^0.17.0
shared_preferences: ^2.0.8
get_it: ^7.2.0
bot_toast: ^4.0.1
percent_indicator: ^3.4.0
flutter_staggered_grid_view: ^0.4.0
syncfusion_flutter_calendar: ^19.3.44
flutter_web_auth: ^0.3.1
oauth2_client: ^2.2.6
cached_network_image: ^3.1.0
table_calendar: ^3.0.2
list_tile_switch: ^1.0.0
mask_text_input_formatter: ^2.0.0
url_launcher: ^6.0.12
syncfusion_flutter_charts: ^19.3.44+1
pie_chart: ^5.0.1
fl_chart: ^0.40.0
equatable: ^2.0.3
flutter_bloc: ^7.3.0
#sreekanth adding
flutter_spinkit: ^5.1.0
auto_route: ^2.4.2
flutter_local_notifications: ^9.0.0
flutter_svg: ^0.22.0
image_picker: ^0.8.4+2
multi_select_flutter: ^4.0.0
dropdown_search: ^1.0.3
firebase_core: ^1.9.0
firebase_messaging:
flutter_slidable: ^0.6.0
webview_flutter: ^2.1.1
zoom: ^1.0.3+1
video_player: ^2.2.5
dio: ^4.0.0
path: ^1.8.0
path_provider: ^2.0.5
charts_flutter:
git:
url: git://github.com/google/charts.git
path: charts_flutter
dev_dependencies:
flutter_test:
sdk: flutter
build_runner:
auto_route_generator: ^2.4.1
change_app_package_name: ^1.0.0
Doctor Summary:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.5.2, on Microsoft Windows [Version 10.0.19042.1348], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.61.2)
[√] Connected device (3 available)
• No issues found!
Below issue facing:
FAILURE: Build failed with an exception.
Execution failed for task ':app:checkDebugDuplicateClasses'.
Go to the documentation to learn how to Fix dependency resolution errors.
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.
pubspec.yaml:
name: gym_admin
description: A new Flutter application.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.14.3 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.3
http: ^0.13.4
intl: ^0.17.0
shared_preferences: ^2.0.8
get_it: ^7.2.0
bot_toast: ^4.0.1
percent_indicator: ^3.4.0
flutter_staggered_grid_view: ^0.4.0
syncfusion_flutter_calendar: ^19.3.44
flutter_web_auth: ^0.3.1
oauth2_client: ^2.2.6
cached_network_image: ^3.1.0
table_calendar: ^3.0.2
list_tile_switch: ^1.0.0
mask_text_input_formatter: ^2.0.0
url_launcher: ^6.0.12
syncfusion_flutter_charts: ^19.3.44+1
pie_chart: ^5.0.1
fl_chart: ^0.40.0
equatable: ^2.0.3
flutter_bloc: ^7.3.0
#sreekanth adding
flutter_spinkit: ^5.1.0
auto_route: ^2.4.2
flutter_local_notifications: ^9.0.0
flutter_svg: ^0.22.0
image_picker: ^0.8.4+2
multi_select_flutter: ^4.0.0
dropdown_search: ^1.0.3
firebase_core: ^1.9.0
firebase_messaging:
flutter_slidable: ^0.6.0
webview_flutter: ^2.1.1
zoom: ^1.0.3+1
video_player: ^2.2.5
dio: ^4.0.0
path: ^1.8.0
path_provider: ^2.0.5
charts_flutter:
git:
url: git://github.com/google/charts.git
path: charts_flutter
dev_dependencies:
flutter_test:
sdk: flutter
build_runner:
auto_route_generator: ^2.4.1
change_app_package_name: ^1.0.0
Doctor Summary:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.5.2, on Microsoft Windows [Version 10.0.19042.1348], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.61.2)
[√] Connected device (3 available)
• No issues found!