Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter 3: property 'destDir' is missing an input or output annotation #27

Closed
tudor07 opened this issue May 19, 2022 · 3 comments
Closed

Comments

@tudor07
Copy link

tudor07 commented May 19, 2022

Can't build Android version on Flutter 3


* What went wrong:
Some problems were found with the configuration of task ':flutter_locker:extractDebugProto' (type 'ProtobufExtract').
  - In plugin 'com.google.protobuf' type 'com.google.protobuf.gradle.ProtobufExtract' property 'destDir' 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.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.google.protobuf' type 'com.google.protobuf.gradle.ProtobufExtract' property 'isTest' 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.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.

@guilo8914
Copy link

guilo8914 commented May 20, 2022

I'm having an issue with the new version 2.0.4. 2.0.3 works just fine, but 2.0.4 doesn't compile and gives an error with protobuf as well

lib\main.dart:1

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_locker:generateDebugProto'.
> java.io.IOException: Cannot run program "C:\Users\Guilherme\.gradle\caches\modules-2\files-2.1\com.google.protobuf\protoc\3.9.1\71ef8ff0c9bf2d0934285239bcc58ee5368de9b\protoc-3.9.1-osx-x86_64.exe": CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher

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

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Downgraded to 2.0.3 and its still working fine

@itsJoKr
Copy link
Contributor

itsJoKr commented May 26, 2022

This is weird, 2.0.4 works on my machine.

Anyway, the protobuf library that we use, often gives us some issues (as it is in your case). So our goal now is to completely replace protobuf, but for that you'll have to wait (hopefully a week or two). I'll keep you updated.

@itsJoKr
Copy link
Contributor

itsJoKr commented Jul 5, 2022

2.1.0 is out so protobuf should give you trouble anymores.

@itsJoKr itsJoKr closed this as completed Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants