Repository navigation
[firebase_firestore] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. #345
Copy link
Copy link
Closed
Labels
impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)A bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: cloud_firestoretype: bugSomething isn't workingSomething isn't working
Description
Steps to Reproduce
Hello guys, I am currently working on an application in which I use firebase. Up to now everything worked as expected but from the moment I added the plugin firebase_in_app_messaging: ^0.0.1+3 I had as error:
Logs
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. "[1.16.
1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: io.grpc:grpc-android:1.16.1 -> io.grpc:grpc-core@[1.16.1], but grpc-core version was 1.21.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_in_app_messaging' which depends onto com.google.firebase:firebase-inappmes
saging-display@18.0.2
-- Project 'app' depends onto com.google.firebase:firebase-firestore@19.0.0
-- Project 'app' depends onto io.grpc:grpc-okhttp@1.21.0
-- Project 'app' depends onto com.google.firebase:firebase-inappmessaging-display@18.0.2
-- Project 'app' depends on project 'cloud_firestore' which depends onto com.google.firebase:firebase-firestore@19.0.0
-- Project 'app' depends onto io.grpc:grpc-android@1.16.1
-- Project 'app' depends onto io.grpc:grpc-core@1.21.0
-- Project 'app' depends onto com.google.firebase:firebase-inappmessaging@18.0.2
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 1m 43s
Finished with error: Gradle task assembleDebug failed with exit code 1
Running "flutter pub get" in niochi... 35,3s
Analyzing niochi...
No issues found! (ran in 2.4s)
[√] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [version 10.0.17134.1], locale fr-FR)
• Flutter version 1.7.8+hotfix.4 at D:\Dev\FLUTTER\flutter
• Framework revision 20e59316b8 (4 weeks ago), 2019-07-18 20:04:33 -0700
• Engine revision fee001c93f
• Dart version 2.4.0
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at D:\Dev\SDK1\SDK1
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed
instructions.
[√] Android Studio (version 3.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 34.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2019.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2019.1.2
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[√] VS Code (version 1.37.0)
• VS Code at C:\Users\Orion WAMBERT\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.3.0
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
Pubspec
firebase_core: ^0.4.0+8
firebase_auth: ^0.14.0+1
firebase_analytics: ^5.0.0
cloud_firestore: ^0.12.9
firebase_in_app_messaging: ^0.0.1+3
firebase_storage: ^3.0.5
flutter_crashlytics: ^1.0.0
google_sign_in: ^4.0.6
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)A bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: cloud_firestoretype: bugSomething isn't workingSomething isn't working
Activity
kroikie commentedon Oct 13, 2019
@OrionWambert
The issue at flutter/flutter#38751 has been closed and moved here. Future collaboration on this issue will be done here.
iapicca commentedon Oct 21, 2019
Hi @OrionWambert
I see from your flutter doctor that you are using an older version of Flutter;
could you try with latest stable version?
Also, to better address the issue, would be helpful
if you could post your
flutter run --verbose/flutter build --verbose.Thank you
[-]Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[/-][+][firebase-firestore] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[/+][-][firebase-firestore] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[/-][+][firebase_firestore] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[/+]boylenssen commentedon Nov 20, 2019
I attached the output as a file
output.txt
logs
iapicca commentedon Nov 20, 2019
Hi @boylenssen
thank you for your logs,
are you using the new (literally yesterday's) version?
cloud_firestore 0.12.10+2Could you please provide your
flutter doctor -v?thanks again
boylenssen commentedon Nov 20, 2019
yes, I saw there was a new one, so I updated my version: cloud_firestore: ^0.12.10+2
I got this above after running doctor, I checked and saw I had some licenses not agreed, so I did
that, ran doctor again and now no issues:
boylenssen commentedon Nov 22, 2019
@iapicca Why is this on 'waiting for customer response'?
iapicca commentedon Nov 29, 2019
Hi @boylenssen
the bot should remove the label, but since the issue wasn't open by you
it failed to do so, I've just removed the label.
thank you for notifying to me the situation
Salakar commentedon Jul 8, 2020
Hey, as part of our on-going work for #2582, this has been resolved in our Firebase Firestore rework (#2913) - which has now been merged into master. We'll look at publishing some prereleases in the next few days. Thank you