Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio / Gradle build fails in release: Could not determine the dependencies of task ':app:crashlyticsStoreDeobsRelease'

The build fails only in release, debug builds fine. Android studio 1.4, Gradle 2.8 RC1, Gradle plugin 1.4.0 BETA 4

FAILURE: Build failed with an exception.
* Exception is:
org.gradle.api.GradleException: Could not determine the dependencies of task ':app:crashlyticsStoreDeobsRelease'.
...
Error:org.gradle.api.UnknownTaskException: Task with path 'dexRelease' not found in project ':app'.
like image 516
vvbYWf0ugJOGNA3ACVxp Avatar asked Oct 05 '15 23:10

vvbYWf0ugJOGNA3ACVxp


People also ask

What is Gradle dependencies in android studio?

The Gradle build system in Android Studio makes it easy to include external binaries or other library modules to your build as dependencies. The dependencies can be located on your machine or in a remote repository, and any transitive dependencies they declare are automatically included as well.

What is Gradle build in Android Studio?

Android Studio uses Gradle, an advanced build toolkit, to automate and manage the build process, while allowing you to define flexible custom build configurations. Each build configuration can define its own set of code and resources, while reusing the parts common to all versions of your app.

Where is the .Gradle file android?

Located in the project/module directory of the project this Gradle script is where all the dependencies are defined and where the SDK versions are declared. This script has many functions in the project which include additional build types and override settings in the main/app manifest or top-level build.


1 Answers

This is due to the changes made to Gradle 1.4.0.beta2

You need to update the fabric Gradle plugin to a version > 1.20.0:

classpath 'io.fabric.tools:gradle:1.20.1' should do it

like image 196
nbarraille Avatar answered Oct 06 '22 06:10

nbarraille