ponnamkarthik / FlutterYoutube

Flutter Plugin to play youtube Videos
Apache License 2.0
126 stars 56 forks source link

flutter_yotube plugin incompatible with cloud_firestore on AndroidXproject #57

Open naveenaa opened 4 years ago

naveenaa commented 4 years ago

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.

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!

jatin-rajput commented 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:

The following adds the Cupertino Icons font to your application.

Use with the CupertinoIcons class for iOS style icons.

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:

For information on the generic Dart part of this file, see the

following page: https://dart.dev/tools/pub/pubspec

The following section is specific to Flutter.

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

mohn93 commented 4 years ago

@PonnamKarthik, I recommend merging 58 Pull request in order to solve this issue