question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error "A property without annotation isn't considered during up-to-date checking." with Gradle 7 and App Distribution Gradle Plugin

See original GitHub issue

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Artic Fox Canary 14
  • Firebase Component: App Distribution Gradle Plugin
  • Component version: 2.1.0

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

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.
    ```

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
leinardicommented, Apr 15, 2021

Can confirm: we are getting this error with AGP 4.1.3 and Gradle 7.0:

FAILURE: Build failed with an exception.
 
* What went wrong:
A problem was found with the configuration of task ':apps:dsa:appDistributionUploadAustriaRelease' (type 'UploadDistributionTask').
  - 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.
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
6reactions
CristianGMcommented, Apr 21, 2021

2.1.1 fixed the issue for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

AppDistribution Gradle plugin with Gradle 7 - Stack Overflow
Reason: A property without annotation isn't considered during up-to-date checking. Possible solutions: 1. Add an input or output annotation. 2.
Read more >
Missing input output annotations gradle 7.3 issue with java 17
Reason: A property without annotation isn't considered during up-to-date checking. Possible solutions: Add an input or output annotation.
Read more >
A problem was found with the configuration of the Gradle 7 task
Reason: A property without annotation isn't considered during up-to-date checking. Possible solutions: 1. Add an input or output annotation.
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to Tools > SDK Manager. In the...
Read more >
Release Notes | Firebase - Google
The Firebase Android SDKs for Firebase ML have been updated. The App Distribution Gradle plugin has also been updated. For more details, check...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found