The type com.google.protobuf.GeneratedMessageV3$Builder cannot be resolved. It is indirectly referen

Posted 月亮那么僵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The type com.google.protobuf.GeneratedMessageV3$Builder cannot be resolved. It is indirectly referen相关的知识,希望对你有一定的参考价值。

    在做项目的时候,导入了几个类,导入了相关的jar。

    结果在package处报了The type com.google.protobuf.GeneratedMessageV3$Builder cannot be resolved. It is indirectly referenced from required .classfiles  .

    寻寻觅觅,查了很多资料,有说jdk版本问题,我也检查了,jdk没问题。找了半天,也没有一个所以然。然后重新检查了一遍相关的jar包,发现有一个是protobuf-java-3.0.0-beta-2.jar。本人对jar包也没什么了解,所以就去查,发现jar后面带了beta结尾的,是测试jar包,虽然不会有大的纰漏,但是有很多小问题。然后自己去maven 中央仓库下了protobuf-java-3.0.0.jar。导入,错误消失了。一个小错误,找了一两天,也是很伤。所以贴出来,希望能够帮助到大家。

附上下载地址:http://mvnrepository.com/artifact/com.google.protobuf/protobuf-java/3.1.0

以上是关于The type com.google.protobuf.GeneratedMessageV3$Builder cannot be resolved. It is indirectly referen的主要内容,如果未能解决你的问题,请参考以下文章

The method queryForMap(String, Object...) from the type JdbcTemplate refers to the missing type Data

[WPF]The type name ‘App’ does not exist in the type '...'的问题

The method xx from the type xx refers to the missing type List等问题的解决办法

Array types are now written with the brackets around the element type问题的解决方法

返回suggester的类型(Returning the type of the suggester)

The parameter to the method is the basic data type