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.

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

For me, the problem appeared when I updated to AS 3.2-RC02 which requires the Android plugin 3.2.0-rc02.

So I had to roll back to AS 3.1.4 which is the current stable version so I could downgrade my version of the Android plugin. I am using Android plugin 3.2.0-rc01

I also had to downgrade the fabric plugin to 1.24.4

You only need to update Gradle version (in Gradle-Wrapper.properties). for ex:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

React Native - Image Cache