You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

咨询io.grpc.reflection.testing类所需的Gradle依赖

解决依赖缺失问题

你需要添加grpc-reflection的测试依赖,对应的Gradle配置如下:

testImplementation group: 'io.grpc', name: 'grpc-reflection', version: '1.51.0'

原因说明

你导入的类都属于io.grpc.reflection.testing包,这些类是gRPC反射模块的测试专用类,并不包含在你已添加的grpc-testing、grpc-protobuf或grpc-core依赖中,只有引入grpc-reflection的测试依赖才能获取到这些类。

内容的提问来源于stack exchange,提问作者Scavanger

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 11:40:26