Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppDistribution Gradle plugin with Gradle 7

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

like image 908
Billda Avatar asked Apr 10 '21 05:04

Billda


People also ask

How do I set the Gradle plugin version?

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.


1 Answers

New version of plugin 2.1.1 was released that fixes this issue.

classpath 'com.google.firebase:firebase-appdistribution-gradle:2.1.1'
like image 181
Billda Avatar answered Sep 26 '22 15:09

Billda