Closed naveenaa closed 5 years ago
Similar problem:
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[17.1.
2]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.firebase:firebase-messaging:17.6.0 -> com.google.firebase:firebase-iid@[17.1.2], but fire
base-iid version was 19.0.0.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-perf@{strictly 18.0.1}
-- Project 'app' depends onto com.google.firebase:firebase-config@{strictly 18.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-analytics@{strictly 17.0.0}
-- Project 'app' depends onto io.intercom.android:intercom-sdk@{strictly 5.3.2}
-- Project 'app' depends onto com.google.firebase:firebase-core@{strictly 17.0.1}
-- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@{strictly 17.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-config@18.0.0
-- Project 'app' depends onto com.google.firebase:firebase-iid@{strictly 19.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-core@17.0.1
-- Project 'app' depends onto io.intercom.android:intercom-sdk@5.3.2
-- Project 'app' depends onto io.intercom.android:intercom-sdk-fcm@{strictly 5.3.2}
-- Project 'app' depends onto com.google.firebase:firebase-perf@18.0.1
-- Project 'app' depends onto com.google.firebase:firebase-messaging@{strictly 17.6.0}
For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
uild.gradle file.
Use:
classpath 'com.google.gms:google-services:4.3.0'
The plugin is working as intended since your dependency graph appear to either cross SemVer MAJOR version bounds or attempt to use a different version of a dependency with a []
strict version declaration. See the output debug command:
./gradlew --info :app:assembleDebug
for what artifacts and versions may be causing the issue.
classpath 'com.google.gms:google-services:3.2.1'
I think it's because of the version of google-services. 4.3.0
didn't work for me. 3.2.1
worked.
classpath 'com.google.gms:google-services:3.2.1'
I think it's because of the version of google-services.
4.3.0
didn't work for me.3.2.1
worked.
it's working now properly thanks
I am getting the same issue. It happens only on windows.
FAILURE: Build failed with an exception. What went wrong: Could not determine the dependencies of task :app:compileDebugJavaWithJavac. In project app a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0.1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.google.android.gms:play-services-base:15.0.1 -> com.google.android.gms:play-services-tasks@[15.0.1], but play-services-tasks version was 17.0.0. The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the artifact with the issue. -- Project 'app' depends onto com.google.firebase:firebase-analytics-impl@{strictly 16.1.1} -- Project 'app' depends onto com.google.firebase:firebase-iid@{strictly 16.0.0} -- Project 'app' depends onto com.google.firebase:firebase-common@{strictly 19.2.0} -- Project 'app' depends onto com.google.firebase:firebase-core@16.0.1 -- Project 'app' depends onto com.google.firebase:firebase-core@{strictly 16.0.1} -- Project 'app' depends onto com.google.firebase:firebase-measurement-connector-impl@{strictly 16.0.1} -- Project 'app' depends onto com.google.firebase:firebase-analytics@{strictly 16.0.1} -- Project 'app' depends onto com.google.firebase:firebase-iid-interop@{strictly 16.0.0} -- Project 'app' depends onto com.google.android.gms:play-services-base@{strictly 15.0.1} -- Project 'app' depends onto com.google.android.gms:play-services-tasks@{strictly 17.0.0} For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file. 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 36s Finished with error: Gradle task assembleDebug failed with exit code 1
My flutter doctor
[√] Flutter (Channel unknown, v1.12.13+hotfix.7, on Microsoft Windows [versão 10.0.18362.836], locale pt-BR) [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [√] Android Studio (version 3.6) [√] VS Code (version 1.45.1) [√] Connected device (1 available)
My plugins
http: ^0.12.0+2 shared_preferences: ^0.5.6 cached_network_image: ^2.0.0 image_picker: ^0.6.2+3 async: ^2.1.0
qr_flutter: ^2.0.0
cupertino_icons: ^0.1.2 font_awesome_flutter: ^8.5.0 rxdart: ^0.23.1 flutter_html: ^0.11.1 url_launcher: ^5.4.1 open_file: ^2.1.1 firebase_messaging: ^6.0.16 page_view_indicators: ^1.3.1 flutter_calendar_carousel: ^1.4.10 dio: ^3.0.8 permission_handler: ^4.0.0 intl: ^0.16.0 package_info: ^0.4.0+13 flutter_launcher_icons: ^0.7.5 provider: ^4.0.1 path_provider: ^1.5.1 bloc_pattern: ^2.5.1 mobx: ^1.0.0 flutter_mobx: ^1.0.1 image: ^2.1.4 pic: 2.1.41
classpath 'com.google.gms:google-services:3.2.1'
I think it's because of the version of google-services.4.3.0
didn't work for me.3.2.1
worked.it's working now properly thanks
it worked for metoo
classpath 'com.google.gms:google-services:3.2.1'
I think it's because of the version of google-services.
4.3.0
didn't work for me.3.2.1
worked.
It worked for me too, thanks a lot
classpath 'com.google.gms:google-services:3.2.1'
I think it's because of the version of google-services.4.3.0
didn't work for me.3.2.1
worked.it's working now properly thanks
Where to add this?? I mean, in which file??
classpath 'com.google.gms:google-services:3.2.1'
I think it's because of the version of google-services.4.3.0
didn't work for me.3.2.1
worked.it's working now properly thanks
Where to add this?? I mean, in which file??
Open your project in VSCode or any other programs and search inside files you will get it. It should be inside build.gradle file in Android folder.
classpath 'com.google.gms:google-services:3.2.1'
it worked for metoo
BUG:
Unable to generate apk file due to issues with Firebase_core dependencies { api 'com.google.firebase:firebase-core:16.0.4' }
Use the following in pubspec.yaml
The following adds the Cupertino Icons font to your application.
Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2 cloud_firestore: ^0.3.0 firebase_storage: ^0.3.3 firebase_core: ^0.2.3 # add dependency for Firebase Core firebase_analytics: ^1.0.4
dev_dependencies: flutter_test: sdk: flutter firebase_database: ^1.0.4 typed_data: ^1.1.6
Observe following message from Android:
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0. 1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.android.gms:play-services-flags:15.0.1 -> com.google.android.gms:play-services-basement@[ 15.0.1], but play-services-basement version was 17.0.0.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends on project 'firebase_auth' which depends onto com.google.firebase:firebase-auth@16.0.2 -- Project 'app' depends onto com.google.firebase:firebase-auth-interop@{strictly 16.0.0} -- Project 'app' depends onto com.google.firebase:firebase-auth@{strictly 16.0.2} -- Project 'app' depends on project 'cloud_firestore' which depends onto com.google.firebase:firebase-firestore@[11.6.0, 12.0[ -- Project 'app' depends on project 'cloud_firestore' which depends onto com.google.firebase:firebase-core@[11.6.0,12.0[ -- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk@{strictly 17.0.0} -- Project 'app' depends onto com.google.firebase:firebase-database-collection@{strictly 16.0.0} -- Project 'app' depends onto com.google.android.gms:play-services-measurement@{strictly 17.0.0} -- Project 'app' depends on project 'firebase_core' which depends onto com.google.firebase:firebase-core@16.0.4 -- Project 'app' depends on project 'firebase_database' which depends onto com.google.firebase:firebase-database@16.0.3 -- Project 'app' depends onto com.google.firebase:firebase-core@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-firestore@{strictly 11.8.0} -- Project 'app' depends onto com.google.android.gms:play-services-base@{strictly 17.0.0} -- Project 'app' depends onto com.google.firebase:firebase-common@{strictly 18.0.0} -- Project 'app' depends onto com.google.firebase:firebase-storage-common@{strictly 15.0.2} -- Project 'app' depends onto com.google.firebase:firebase-analytics@{strictly 17.0.0} -- Project 'app' depends onto com.google.android.gms:play-services-ads-identifier@{strictly 17.0.0} -- Project 'app' depends onto com.google.android.gms:play-services-measurement-base@{strictly 17.0.0} -- Project 'app' depends onto com.google.firebase:firebase-core@{strictly 17.0.0} -- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk-api@{strictly 17.0.0} -- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@{strictly 17.0.0} -- Project 'app' depends onto com.google.android.gms:play-services-tasks@{strictly 17.0.0} -- Project 'app' depends onto com.google.firebase:firebase-iid-interop@{strictly 17.0.0} -- Project 'app' depends onto com.google.firebase:firebase-iid@{strictly 19.0.0} -- Project 'app' depends onto com.google.firebase:firebase-database@{strictly 16.0.3} -- Project 'app' depends onto com.google.android.gms:play-services-basement@{strictly 17.0.0} -- Project 'app' depends onto com.google.firebase:firebase-storage@{strictly 15.0.2} -- Project 'app' depends onto com.google.android.gms:play-services-stats@{strictly 17.0.0} -- Project 'app' depends on project 'firebase_storage' which depends onto com.google.firebase:firebase-storage@15.+ -- Project 'app' depends on project 'firebase_analytics' which depends onto com.google.firebase:firebase-analytics@16.0. 4 -- Project 'app' depends onto com.google.android.gms:play-services-measurement-impl@{strictly 17.0.0} -- Project 'app' depends onto com.google.firebase:firebase-measurement-connector@{strictly 18.0.0} -- Project 'app' depends onto com.google.android.gms:play-services-flags@{strictly 15.0.1}
For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file.
##########################
############################