33

I'm trying to import an android project into Eclipse (from Git, but I don't think it's relevant), and I can't run or compile it because I get these errors:

Android requires compiler compliance level 5.0. Please fix project properties.  Serval-Video-Discovery      line 1  Android ADT Problem 
Project 'Serval-Video-Discovery' is missing required source folder: 'gen'   Serval-Video-Discovery      Build path  Build Path Problem

I think the first one isn't really a big problem, even if I don't really understand the warning.

The funny thing is that the "gen" folder exists on the filesystem; furthermore, I can't try to create it because it already exists !

What should I do to solve this issue?

Here is the GitHub repo I'm trying to import from: https://github.com/rbochet/Serval-Video-Discovery

3
  • 1
    Clean the project and then run.
    – Sandy
    Mar 16, 2011 at 8:57
  • 1
    Just try Restarting eclipse if it doesn't work after trying wat Sandy said.
    – Niki
    Mar 16, 2011 at 8:59
  • If cleaning the project and restarting Eclipse isn't enough, try removing the gen directory from the file system (it's automatically generated, as the name implies). Then run Clean project. This did it for me.
    – appas
    Mar 17, 2011 at 17:27

5 Answers 5

31
Package Explorer -> Right click the project -> "Android Tools" -> "Fix Project Properties"
Project -> Clean

Fixes without having to restart eclipse

0
13
Android requires compiler compliance level 5.0. Please fix project properties.

I had the same problem but non of these answers helped me. I found my solution here:

Package Explorer -> Right click the project -> "Android Tools" -> "Fix Project Properties"

2
  • I used your trick few days ago... I have to say that the "fix the issue button" is always welcome. Good one!
    – Rob
    Apr 3, 2011 at 7:03
  • Why did I have to search 2 hours only to find the RIGHT MOUSE BUTTON here, Everybody else answering questions, assumed that you know that. But there's beginners too. Txs
    – Martin
    Jan 5, 2013 at 20:09
1

I had the same problem but solved in the following way

Package Explorer -> Right click the project -> Properties -> Java Build Path -> Source -> your project name/gen -> click on Remove -> Click on Add Folder -> check gen -> Ok -> Ok    
1
  • "Fix project properties" and "Clean" didn't work. But this worked for me. I had this issue after formatting my computer and re-installing and re-importing my project. Eclipse did not prompt error and ran the last installed program on the phone instead.
    – Uknight
    Jul 23, 2013 at 10:13
0

Just right click and delete the gen directory from eclipse. If not, try the fix project properties above.

0

If gen folder is missing under project after importing an existing project into workplace, just create a gen folder under project and that will fix the above error.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.