Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 无法设置未知属性';工件类型';用于扩展';firebaseAppDistribution';_Android_Firebase_Android Gradle Plugin_Build.gradle_Android App Bundle - Fatal编程技术网

Android 无法设置未知属性';工件类型';用于扩展';firebaseAppDistribution';

Android 无法设置未知属性';工件类型';用于扩展';firebaseAppDistribution';,android,firebase,android-gradle-plugin,build.gradle,android-app-bundle,Android,Firebase,Android Gradle Plugin,Build.gradle,Android App Bundle,我正在尝试配置build.gradle文件以将捆绑包上载到firebase发行版,但当我在块firebaseAppDistribution中添加此语句(artifactType=“AAB”)以获取捆绑包文件时,出现以下错误: 无法为com.google.firebase.appdistribution.gradle.AppDistributionExtension类型的扩展“firebaseAppDistribution”设置未知属性“artifactType”。 这是build.gradle上

我正在尝试配置build.gradle文件以将捆绑包上载到firebase发行版,但当我在块firebaseAppDistribution中添加此语句(artifactType=“AAB”)以获取捆绑包文件时,出现以下错误:

无法为com.google.firebase.appdistribution.gradle.AppDistributionExtension类型的扩展“firebaseAppDistribution”设置未知属性“artifactType”。

这是build.gradle上的代码:

firebaseAppDistribution {
        artifactType="AAB"
        serviceCredentialsFile = System.getenv("GOOGLE_APPLICATION_CREDENTIALS")
        groups = System.getenv("ANDROID_RELEASE")
      }
有什么问题吗?我知道firebase刚刚添加了对将捆绑格式文件上传到应用程序发行版的支持,我已经喜欢firebase和play store的帐户,所以我有点迷茫,因为这是我第一次尝试这样做,而且firebase发行版上的这项功能非常棒

这些是我的依赖项:

  • classpath“com.android.tools.build:gradle:4.0.1”
  • 分配=https://services.gradle.org/distributions/gradle-6.1.1-all.zip
  • 类路径“com.google.firebase:firebase appdistribution gradle:2.0.1”