1

I have updated the com.google.protobuf:protoc version from 4.27.5 to 4.28.0 in my android project. The protobuf block has a defination like this

protobuf {
    //dependency versions are defined under runtime-android/gradle/libs.versions.toml file
    protoc { artifact = "com.google.protobuf:protoc:${libs.versions.protobuf.protoc.get().toString()}" }
    plugins {
        grpc { artifact = "io.grpc:protoc-gen-grpc-java:${libs.versions.grpc.java.get().toString()}" }
        grpckt { artifact = "io.grpc:protoc-gen-grpc-kotlin:${libs.versions.grpc.kt.get().toString()}" }
    }
    generateProtoTasks {
        all().each { task ->
            task.dependsOn syncProtos

            task.builtins {
                java {
                    option("lite")
                }
            }
            task.plugins {
                grpc {
                    option("lite")
                }
                grpckt {
                    option("lite")
                }
            }
        }
    }
}

After building project I am getting error as error: cannot find symbol private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< ^ symbol: class IntListAdapter location: class Internal What changed I need to do in dependencies or proto files to get rid of this error

I tried changing version of protobufKotlin & protobufJava but nothing worked

1 Answer 1

0

Make sure the com.google.protobuf:protobuf-java dependency is the same version as the protoc compiler. This is likely the problem here. You can find the duplicate issue in gRPC Java: https://github.com/grpc/grpc-java/issues/11925

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.