14

我正在使用 Android Gradle 插件版本7.0.0-alpha14和 Gradle 版本7.0,当我尝试通过 Gradle 插件版本将应用程序上传到应用程序分发时,2.1.0它在任务中失败app:appDistributionUploadDebug并出现错误

> Task :app:appDistributionUploadDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':app:appDistributionUploadDebug' (type 'UploadDistributionTask').
  - Type 'UploadDistributionTask' property 'COMMAND_LINE_PREFIX' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'UploadDistributionTask' property 'appDistributionProperties' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.

我想该插件与 Gradle 7 不兼容,但这是一个已知问题,是否有一些解决方法?谢谢

4

1 回答 1

3

已发布新版本的插件2.1.1来解决此问题。

classpath 'com.google.firebase:firebase-appdistribution-gradle:2.1.1'
于 2021-04-21T09:33:04.773 回答