Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java missing required source folder: 'gen'

Tags:

android

sdk

I just reformatted my computer. I have windows xp sp3 32 bit. I install java jdk android sdk eclipse ide

When I go to make a new android project i get this error.

Project 'HelloAndroid2' is missing required source folder: 'gen'

Please help i'm new to eclipse so give detail responses.

like image 925
lonesarah Avatar asked Nov 23 '10 00:11

lonesarah


People also ask

Is missing required source folder src main java?

If you are facing an error with the folder, such as src/test/java or src/test/resources, just do a right click on the folder and then create a a new folder with the name being src/test/java. This should solve your problem.

How to add src test java folder in eclipse?

Select project -> New -> Folder (not source folder) -> Select the project again -> Enter the folder name as (src/test/java) -> finish. That's it.

How do you create a source folder?

Right-click the folder, choose Build Path, then Use as Source Folder.


2 Answers

I just got this problem when I was trying to import a project that was originally created with a version of the SDK that is no longer installed on my machine.

Right click the project. Select Properties. Go to Android. Select a Project Build Target. Click Ok. You might have to clean and rebuild the project as well.

like image 143
Joel Avatar answered Sep 20 '22 15:09

Joel


Right-click on the "gen" folder in Eclipse and select Properties. Then, remove the "Derived" checkbox. Then clean the project.

like image 33
Randy Sugianto 'Yuku' Avatar answered Sep 20 '22 15:09

Randy Sugianto 'Yuku'