Android Requires Compiler Compliance Level 5.0 or 6.0. Found '1.7' Instead. Please Use Android Tools > Fix Project Properties

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools Fix Project Properties

That isn't the problem, Jack. Android SDK isn't x64, but works ok with x64 jvm (and x64 eclipse IDE).

As helios said, you must set project compatibility to Java 5.0 or Java 6.0.

To do that, 2 options:

  1. Right-click on your project and select "Android Tools -> Fix
    Project Properties"
    (if this din't work, try second option)
  2. Right-click on your project and select "Properties -> Java
    Compiler"
    , check "Enable project specific settings" and select
    1.5 or 1.6 from "Compiler compliance settings" select box.

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead

Right click on your project -> Properties -> Java Compiler.
Inside Java Compiler, make sure the JDK Compiler compliance level is set to 1.6 and not anything else.

Also, if you have any library projects connected, make sure they also use the same settings.

Android: rebuild now requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Why remove of @Override?

Dont remove any @overide notation.

you must set project compatibility to Java 5.0 or Java 6.0.

To do that, 2 options:

1) right-click on your project and select "Android Tools -> Fix Project Properties" (if this din't work, try second option)

2) right-click on your project and select "Properties -> Java Compiler", check "Enable project specific settings" and select 1.5 or 1.6 from "Compiler compliance settings" select box.

refer this LINK for reference

Android requires compliance level 5.0 or 6.0

First ,You Should Read Java Collections And Generics

ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String,String>>();

and set Compliance level 1.6, because 1.7 is not compatable yet. Java 1.5 gives @Override anotation error. Because @Override introduced in 1.6.

project -> properties -> java compiler -> compiler compliance level->Set it at 1.6 

How do I use a Java project that requires a 1.7 compliance level on an Android project build path?

Google just released Eclipse ADT 22.6 which adds support for Java 7 language features, http://developer.android.com/tools/sdk/eclipse-adt.html. Once you upgrade to to the latest version of the plugin the Compiler compliance level will include the 1.7 option.

When I fix this Android compiler error, I am getting a multi-catch exception

You want to use multi-catch with Java 1.6; you cannot, because it was added in Java 1.7.

To change the multi-catch blocks you'll need to change every catch of this form (the multi-catch form) -

} catch(ParseException | IOException exception) {
}

to this form (e.g. standard catch blocks)

} catch (ParseException exception) {
// do something.
} catch (IOException exception) {
// do something (else?).
}


Related Topics



Leave a reply



Submit