我尝试创建一个 gRPC 客户端。为了
val channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext(true).build
我得到这个编译时错误
Error:(18, 87) value build is not a member of ?0
val channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext(true).build
gRPC 是为 Java 构建的。我的项目是多模块 maven 项目,其中 protobuf 文件和生成的代码位于单独的模块中。