Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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

like image 696
Rob Avatar asked Mar 16 '11 08:03

Rob


People also ask

What is the difference between source folder and folder in eclipse?

A source folder is marked by Eclipse as containing java sources. Then, when you compile your project Eclipse will look for your source code into all your source folders. You can make any folder become a source folder adding it to the java build path.


2 Answers

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

Fixes without having to restart eclipse

like image 128
lviggiani Avatar answered Oct 08 '22 01:10

lviggiani


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"

like image 43
white_gecko Avatar answered Oct 08 '22 00:10

white_gecko