I get following error when I was running an app within Android Studio 2.
Gradle tasks [:app:assembleDebug]
Could not determine the dependencies of task \':app:cr
I was encountering the same issue. In my App build.gradle I had
apply plugin: 'com.android.application'
apply plugin: 'dexguard'
apply plugin: 'io.fabric'
I just switched Dexguard and Fabric, then it worked!
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'dexguard'
For some of you skipping library will works
project(":libABC") {
apply plugin: 'org.sonarqube'
sonarqube {
skipProject = true
}
}
I had similar issue with below error:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
It started when I added below dependency in Gradle:
implementation 'com.google.android.gms:play-services-tagmanager:11.0.4'
I fixed it by upgrading the dependency version as below:
implementation 'com.google.android.gms:play-services-tagmanager:17.0.0'
I had the same issue a few days ago and I found this thread Twitter Developer Forum that points to some incompatibility with versions of gradle/build-tools/crashalics.
My problem was slightly different from yours as I'm not using alpha-3
I'm using 1.5
. But on my update I also changed to the latest gradle distribution gradle-2.9-all.zip
.
So probably/maybe you can fix it by changing to the latest gradle version. But If it does not work, you'll really have to be patient and wait until build tools V2.0
is not in alpha anymore OR the Crashalitycs team, fix the incompatibility.
In place of 1.+ use the latest version of crashlytics -
dependencies {
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
you should use this way -
dependencies {
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:2.6.8'
}
your problem will be resolved for sure. Happy coding !!