Closed bartalusCsaba closed 8 months ago
In an Android project I think that the protobuf Gradle Plugin isn't automatically configuring the java
protoc plugin. Can you try to add it:
it.builtins {
create("kotlin")
create("java") {
option("lite")
}
}
Note that you should see a build/generated/source/proto/debug/java
directory (after build).
Right this was the issue. Thank you so much. Finally works like a charm.
Hello. I am trying to use the grcp library to resolve the proto file generating. My problem is that the files are generated but is no dependencies for the real classes which is defined in proto file. I mean if int the proto there is a HelloRequest than I have a HelloRequestKt.kt file but if I access it it has unimported dependencies as HelloRequest which was not generetad... I don't understand what is happening.
Here is my build.gradle (:app module):
`
`
Here is my proto file: `
`
Here are my generated files. Also the unimported and ungenerated file which the generated files are using.
Can somebody explain what I am doing wrong?
Ps.: This is blocker for me because the compiler doesn't make the build because of the syntax errors.