Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find method create() for arguments [crashlyticsStoreDeobsMyketRelease ...]

I updated Android to version 3.2. Now when I want to Build, or clean or sync project, the following error dispatch:

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: 
Could not find method create() for arguments [crashlyticsStoreDeobsMyketRelease, class com.crashlytics.tools.gradle.tasks.StoreMappingFileTask, com.android.build.gradle.internal.scope.BuildArtifactsHolder$FinalBuildableArtifact@70c73c24] on task set of type org.gradle.api.internal.tasks.DefaultTaskContainer.
at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:179)
at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:164)
at org.gradle.api.internal.tasks.DefaultTaskContainer_Decorated.invokeMethod(Unknown Source)

build.Gradle (Project):

buildscript {
  repositories {
    jcenter()
    google()
    maven { url 'https://maven.fabric.io/public' }
  }
  dependencies {
    classpath 'com.android.tools.build:gradle:3.2.0'
    classpath 'com.google.gms:google-services:4.0.1'
    classpath 'com.google.firebase:firebase-plugins:1.1.5'
    classpath 'io.fabric.tools:gradle:1.26.0'
  }
}

Gradle-Wrapper.properties:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

Thanks in advance for helping.

like image 547
DrMorteza Avatar asked Sep 25 '18 05:09

DrMorteza


1 Answers

I finally found the solution:

Update Gradle to latest version manually.

Replace the following line of Gradle-wrapper.propperties:

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

with:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
like image 184
DrMorteza Avatar answered Nov 18 '22 11:11

DrMorteza