AppDistribution Gradle 插件 Gradle 7
AppDistribution Gradle plugin with Gradle 7
我正在使用 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 不兼容,但这是一个已知问题吗?是否有一些解决方法?谢谢
新版插件 2.1.1
已发布,修复了此问题。
classpath 'com.google.firebase:firebase-appdistribution-gradle:2.1.1'
转到项目的 build.gradle
文件
将以下行添加到依赖项块中:-
类路径'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
我正在使用 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 不兼容,但这是一个已知问题吗?是否有一些解决方法?谢谢
新版插件 2.1.1
已发布,修复了此问题。
classpath 'com.google.firebase:firebase-appdistribution-gradle:2.1.1'
转到项目的
build.gradle
文件将以下行添加到依赖项块中:-
类路径'com.google.protobuf:protobuf-gradle-plugin:0.8.18'