Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter_yotube plugin incompatible with cloud_firestore on AndroidXproject #57

Open
naveenaa opened this issue Dec 4, 2019 · 2 comments

Comments

@naveenaa
Copy link

naveenaa commented Dec 4, 2019

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'.

Android dependency 'androidx.lifecycle:lifecycle-runtime' has different version for the compile (2.0.0) and runtime (2.1.0) classpath. You should manually set the same version via DependencyResolution

  • 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!

@jatin-rajput
Copy link

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
Copy link
Contributor

mohn93 commented Dec 12, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants