构建仅在发布时失败,调试构建正常。 Android studio 1.4,Gradle 2.8 RC1,Gradle插件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'.
答案 0 :(得分:41)
这是由于对Gradle 1.4.0.beta2
所做的更改您需要将结构Gradle插件更新为版本> 1.20.0:
classpath 'io.fabric.tools:gradle:1.20.1'
应该这样做