Open naveenaa opened 4 years ago
dependencies: flutter: sdk: flutter firebase_messaging: ^5.1.4 flushbar: ^1.5.0 flutter_offline: ^0.2.4+1 package_info: ^0.4.0+6 firebase_remote_config: esys_flutter_share: font_awesome_flutter: ^8.5.0 flutter_upi: scrollable_bottom_sheet: ^0.2.1 transparent_image: ^0.1.0 gradient_app_bar: ^0.1.3 smooth_star_rating: ^1.0.3 like_button:
cupertino_icons: ^0.1.2 bottom_navy_bar: ^3.0.0 groovin_material_icons: ^1.1.5 url_launcher: ^5.1.2 flutter_plugin_pdf_viewer: ^1.0.7 admob_flutter: "^0.3.1" cached_network_image: ^1.1.1 cloud_firestore: ^0.12.9+3 firebase_database: giffy_dialog: ^1.6.1 bot_toast: ^2.1.0 toast: ^0.1.5 grouped_buttons: ^1.0.4 flutter_money_formatter: ^0.8.3 timeago: ^2.0.22 flutter_advanced_networkimage: ^0.5.0 autocomplete_textfield: ^1.7.3 introduction_screen: ^1.0.7 shared_preferences: ^0.5.4+6 expandable: ^3.0.1 dev_dependencies: flutter_test: sdk: flutter flutter_youtube:
this is my pubsec.yml for AndroidX incompatibilities you have to use , multiDexEnabled true, in build.gradle & android.enableJetifier=true android.useAndroidX=true org.gradle.jvmargs=-Xmx1536M , in gradle.properties i hope it is solve your problem
@PonnamKarthik, I recommend merging 58 Pull request in order to solve this issue
Steps to reproduce: set up dart file from example, start with cloud_firestore - apk generation successful add flutter_youtube: ^2.0.0 to pubspec, get dependencies and execute - errors; no apk created
https://codelabs.developers.google.com/codelabs/flutter-firebase/#10 pubspec.yaml dependencies: flutter: sdk: flutter cloud_firestore: ^0.12.9+3 flutter_youtube: ^2.0.0
Launching lib/testFireBase.dart on Redmi Note 6 Pro in debug mode... Initializing gradle... Resolving dependencies... Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:preDebugBuild'.
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 13s
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.
Finished with error: Gradle task assembleDebug failed with exit code 1
Please ensure plugin is compatible with cloud_firestore as it will be useful for apps that use cloud_firestore and play youtube videos!
Thank you for fixing the bug.
Best Regards!