I am using Android Gradle Plugin version 7.0.0-alpha14
and Gradle version 7.0
and when I try to upload the app to app distribution through the Gradle plugin version 2.1.0
it fails on a task app:appDistributionUploadDebug
with an error
> 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.
I suppose the plugin is not compatible with Gradle 7 but is it a known issue and is there some workaround? Thanks
You can define the plugin inside the build. gradle file in the project (root level, or inside the module). Otherwise you can use the menu in: File -> Project Structure -> Project.
New version of plugin 2.1.1
was released that fixes this issue.
classpath 'com.google.firebase:firebase-appdistribution-gradle:2.1.1'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With