Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find method create() for arguments - Crashlytics issue

Could not find method create() for arguments [crashlyticsStoreDeobsDebug, class com.crashlytics.tools.gradle.tasks.StoreMappingFileTask, com.android.build.gradle.internal.scope.BuildArtifactsHolder$FinalBuildableArtifact@2ac9ac29] on task set of type org.gradle.api.internal.tasks.DefaultTaskContainer.

Project was in working state but since today build is failing with above error.

Android Studio 3.2 Preview.

like image 540
Rohit Surwase Avatar asked Sep 24 '18 07:09

Rohit Surwase


2 Answers

Update: Check Mike's answer first!

Old answer:

It looks like Fabric released a new version thats breaks the build for some apps.

If you have the line io.fabric.tools:gradle:1.+ (which is recommended by Fabric, but not ideal) you will automatically use the new version.

In the meantime you can replace 1.+ with the latest "stable" version which is 1.25.4. io.fabric.tools:gradle:1.25.4

like image 194
maxoumime Avatar answered Nov 11 '22 19:11

maxoumime


Mike from Fabric here. If you're using version 3.2 of the Android Studio Gradle plugin, upgrading to 4.10 of Gradle and 1.26.0 of the Fabric Gradle plugin will address this issue.

If you use a version of AS Gradle less then 3.2, you won't encounter the issue, but also won't be getting the benefits of the latest release. You will hit this issue if you've updated to 3.2 of AS Gradle and 1.26.0 of Fabric's Gradle plugin, but are using a version of Gradle lower than 4.10 of Gradle.

like image 33
Mike Bonnell Avatar answered Nov 11 '22 20:11

Mike Bonnell