Skip to content

Build Failed: Execution failed for task ':model:generateProto'. #4526

Discussion options

You must be logged in to vote

@MohitGupta121 I have face similar issue today.
For me this solution worked:

Replace if-else case in this file with below code

    // Reference: https://github.com/grpc/grpc-java/issues/7690#issuecomment-760332746
    if (osdetector.os == "osx") {
      artifact = "com.google.protobuf:protoc:3.14.0:osx-x86_64"
    } else {
      artifact = "com.google.protobuf:protoc:3.14.0"
    }

NOTE:

  • This code has not been tested across other os of mac so not sure if it fails for any other case or not.
  • If you are applying this change make sure you do not commit this in your PR.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MohitGupta121
Comment options

MohitGupta121 Aug 25, 2022
Collaborator Author

@Tejas-67
Comment options

@Vishwajith-Shettigar
Comment options

Answer selected by MohitGupta121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants