如果我使用旧版本,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)