android-studio – 无法为参数找到方法create()[crashlyticsStoreDeobsMyketRelease …]

前端之家收集整理的这篇文章主要介绍了android-studio – 无法为参数找到方法create()[crashlyticsStoreDeobsMyketRelease …]前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我将 Android更新到3.2版.现在,当我想构建,或清理或同步项目时,以下错误调度:
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(项目):

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

在此先感谢您的帮助.

解决方法

我终于找到了解决方案:

手动将Gradle更新为最新版本.

替换以下Gradle-wrapper.propperties行:

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

有:

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

猜你在找的Android相关文章