Search code examples
javaandroideclipsebuildpathgreendroid

Problem importing GreenDroid


I'm trying to import and run the GreenDroid project: https://github.com/cyrilmottier/GreenDroid

But get the following error:

The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files  ActionBarItem.java  /GreenDroid/GreenDroid/src/greendroid/widget    line 1  Java Problem

Not sure how to resolve. IDE is saying it is a build path issue.


Solution

  • In the IDE, is Java compiler set to Java 1.5 or above? Enums won't work if the compiler is set to 1.3.

    In Eclipse, the setting is under Build Path/Java Compiler/JDK Compliance.