ponnamkarthik / FlutterYoutube

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

Android dependency 'com.android.support:support-compat' has different version for the compile #24

Closed hjJunior closed 5 years ago

hjJunior commented 5 years ago

I've one project with firebase plugin, but when I add this depedency and try to compile I got this problem


* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:support-compat' has different version for the compile (26.1.0) and runtime (27.1.1) 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 3s
Finished with error: Gradle task assembleDebug failed with exit code 1

My app/build.gradle just implemented firebase core implementation 'com.google.firebase:firebase-core:16.0.1'

and on the end of file applied the plugin apply plugin: 'com.google.gms.google-services'

and on build.gradle classpath 'com.google.gms:google-services:4.0.1'

Adicional info

compileSdkVersion 27 minSdkVersion 16 targetSdkVersion 27

Flutter info

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.0.0, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3)
[✓] Connected device (1 available)

• No issues found!