Nisha
Nisha

Reputation: 45

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

I want to compile my code with JDK 1.8 , but While changing java compiler to 1.8 , I was getting an error in cmd : Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead. Please use Android Tools > Fix Project Properties.

Upvotes: 2

Views: 1479

Answers (1)

Leonardo Costa
Leonardo Costa

Reputation: 1014

Seems that you will not able to use Java 1.8 at android projects in Eclipse, take a look what documention says:

Support for Java 8 language features requires a new compiler called Jack. Jack is supported only on Android Studio 2.1 and higher. So if you want to use Java 8 language features, you need to use Android Studio 2.1 to build your app.

You don’t have to do anything differently to use Jack — just use your standard makefile commands to compile the tree or your project. Jack is the default Android build toolchain for M.

About Java 8 and Android: Use Java 8 Language Features

To install Android Studio: Android Studio - The Official IDE for Android

To import your project: Import Eclipse Projects to Android Studio

To know more about Jack compiler: The Jack toolchain

Upvotes: 2

Related Questions