Can not compile enums in Eclipse

后端 未结 3 638
醉话见心
醉话见心 2020-12-03 13:45

While trying to introduce enums in my Android project in Eclipse, I encountered with the following problem: Compiler says:

  1. The type java.lang.Enum cannot be re
3条回答
  •  自闭症患者
    2020-12-03 14:47

    Open the properties for the project, select the page "Java Compiler" and set the "Compiler Compliance level" to "1.5" or better.

    Project properties page for the Java Compiler

提交回复
热议问题