Can not compile enums in Eclipse

后端 未结 3 648
醉话见心
醉话见心 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:24

    Close project the project with the error.

    Open a different project and launch in emulator. Close the alternative project.

    Open the original project with the error which should no longer be evidenced.

    Don't know why it works or if actually launching the app is necessary but it clears the error .

提交回复
热议问题