Search code examples
androideclipseandroid-version

Error when opening previous android project in Eclipse


I need to open a previousely developed android application in Eclipse. The application has developper for the Android 1.6 target. When I import the project to the eclipse IDE it gives the following error.

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

After that:
Right click the the Project -> Android tools -> Fix project properties

Still I can't open the project. Does any one have experience this before or have any idea to get rid of this error.

Thans inadvance.


Solution

  • For Android you should use JDK 1.5 (5.0) or 1.6 (6.0). In your case you use JDK 1.7, and Android throws error about this.