小编Ale*_*nov的帖子

GRPC从1.25.0更新到1.34.1后找不到simbol错误

如果我使用旧版本,Protobuf 会成功生成我的原型,但是当我将 protobuf 依赖项更新到最新的 1.34.1 时,我总是遇到这个问题。

如果我使用旧版本,Protobuf 会成功生成我的原型,但是当我将 protobuf 依赖项更新到最新的 1.34.1 时,我总是遇到这个问题。

错误

C:\Users\1\AndroidStudioProjects\capella-client-androidd\app\build\generated\source\proto\debug\javalite\api\AbonentOuterClass.java:337: error: an enum switch case label must be the unqualified name of an enumeration constant
        case IS_INITIALIZED: {
             ^
C:\Users\1\AndroidStudioProjects\capella-client-androidd\app\build\generated\source\proto\debug\javalite\api\AbonentOuterClass.java:340: error: an enum switch case label must be the unqualified name of an enumeration constant
        case MAKE_IMMUTABLE: {
             ^
C:\Users\1\AndroidStudioProjects\capella-client-androidd\app\build\generated\source\proto\debug\javalite\api\AbonentOuterClass.java:346: error: an enum switch case label must be the unqualified name of an enumeration constant
        case VISIT: {
             ^
C:\Users\1\AndroidStudioProjects\capella-client-androidd\app\build\generated\source\proto\debug\javalite\api\AbonentOuterClass.java:347: error: cannot find symbol
          Visitor visitor …
Run Code Online (Sandbox Code Playgroud)

protocol-buffers proto grpc

1
推荐指数
1
解决办法
1034
查看次数

标签 统计

grpc ×1

proto ×1

protocol-buffers ×1