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'.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With