Import existing Android project in Eclipse: no gen source folder?

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.

  • Import android project in ADT Eclipse from github
  • archive for required library could not be read or is not a valid ZIP file
  • 'Android Pre Compiler' error 'Path must include project and resource name'
  • 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

  • How to enable Version Control window in android studio
  • Can't clone remote git repository with EGit
  • Use both InstrumentationTestRunner and AndroidJUnitRunner with Robotium and Espresso
  • Why is not recommended to have an Eclipse project folder as a Git repository?
  • Embed git-describe, date and time in a build during compilation in eclipse
  • Error:Execution failed for task ':lib:compileReleaseAidl'. > Executor Singleton not started
  • 5 Solutions collect form web for “Import existing Android project in Eclipse: no gen source folder?”

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

    Fixes without having to restart eclipse

    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”

    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    
    

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

    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.

    Git Baby is a git and github fan, let's start git clone.