Android – Eclipse missing require source folder ‘gen’

androideclipse

I am new in Android, so when I clone my repo and try to build my app there are issue as on the picture above:

enter image description here

I also Cleaned the projects. But it did not help me. One more strange issue – I have this error only on Mac computer. On Windows 7 everything works fine and gen folder is generated automatically.

Best Solution

Edit eclipse preferences and select the required android-sdk folder.

Even if it does not work, then you need to download android sdk level 17, then it will work.

Steps to download sdk:-

  1. Select Window menu > Android SDK Manager
  2. Select the packages as shown in image:-
  3. Click install packages.
  4. Accept the license agreement
  5. Click install.Please refer this image.