Android Community
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34

Thread: New Developer, Small problems... Need help

  1. #1

    Default New Developer, Small problems... Need help


    Well i just started making my first app, and of course it's going to be the "hello World" app

    When I created my initial project I had already noticed an error before I had even started typing anything

    2 errors infact, perhaps you could tell me what they mean and what i can do to fix this

    #1
    Description Resource Path Location Type
    Project 'HelloAndroid' is missing required source folder: 'gen' HelloAndroid Build path Build Path Problem

    #2
    Description Resource Path Location Type
    The project cannot be built until build path errors are resolved HelloAndroid Unknown Java Problem
    Attached Images Attached Images
    Droid made me do it

  2. #2
    Join Date
    Nov 2008
    Posts
    144

    Default Re: New Developer, Small problems... Need help

    Android projects come with a free class called 'R' (short for Resource).

    This is an automatically generated class which you use to reference resources in your project. It is created seperately from your source folder (typically locates in /src) in it's own folder called /gen.

    As a result, /gen is always part of your project. If it is missing, your project is incomplete.

    Now the complicated bit - /gen should be created when your project creates 'R'. Your errors suggest that R is not being created for some reason.

    If you have rebuilt your project with an error, Eclipse may not be able to generate R and may not have bothered creating /gen as a result. Try doing this manually to see if it helps.

  3. #3

    Default Re: New Developer, Small problems... Need help

    both /gen and /src exist in my workspace folder
    Droid made me do it

  4. #4
    Join Date
    Dec 2009
    Posts
    9

    Unhappy Re: New Developer, Small problems... Need help

    Hi,

    I got the same problem and found no solution....

    It seems very common problem for the beginner of android developing but the solution is not common. I checked I have got correct SDK installed and also pointed to the correct path but it's still not working at all. I also found gen folder but still says "missing"

    I installed ecillpse in c:, but my workspace in d:
    I installed sdk in c:\android-sdk-windows
    I didn't use the platform 2.0. I am using 1.6 instead.
    I have created virtual device by AVD manager succesfully in 1.6 version
    I installed jdk6 too.
    I have tried to clean and rebuild.

    But, I still found:
    - Project 'HelloAndroid' is missing required source folder: 'gen' (error type: build path problem)
    - The project cannot be built until build path errors are resolved (error type: java problem)


    Annoying....
    can anyone help me? Thanks.

  5. #5
    Join Date
    Nov 2008
    Posts
    144

    Default Re: New Developer, Small problems... Need help

    This is a bit puzzling...

    Have you guys configured Eclipse/Android correctly, as per

    http://developer.android.com/sdk/eclipse-adt.html

    In particular, have you set the SDK location, in preferences?

    I assume that you are both creating new Android projects, rather than Java projects and then adding Android builders?

    Also, I assume that you are filling out every field in the project creation wizard?

    What version of Eclipse are you guys using?

    Oh, and before you configure a new project you need to use AVD to install an Android SDK, such as 1.6. Then you'll need to associate with your project...
    Last edited by rdomloge; 12-15-2009 at 08:44 AM.

  6. #6
    Join Date
    Dec 2009
    Posts
    9

    Default Re: New Developer, Small problems... Need help

    Hi,

    >Have you guys configured Eclipse/Android correctly, as per
    >http://developer.android.com/sdk/eclipse-adt.html

    Yes, I did the installation step by step following this page.

    >In particular, have you set the SDK location, in preferences?

    Yes, I can see the SDK location in the preferences -> Android.
    In my case, it is "c:\android-sdk-windows\"

    >I assume that you are both creating new Android projects, rather than >Java projects and then adding Android builders?

    Yes, I started the project by File -> New -> Android project.......
    ..... how can I add Android builders because I can see project creation wizard after the above step?

    >Also, I assume that you are filling out every field in the project creation wizard?

    Yes, I did. I filled "Project name", check "Create new project in workspace and "Use default location". Also, the default is an existing path. Then, check "Android 1.6" for target. Fill application name, package name and Create Acitivity. Min SDK Version was filled automatically when I checked the target, ie. 4.

    >What version of Eclipse are you guys using?

    I am using version 3.4.1

    > Oh, and before you configure a new project you need to use AVD to install an Android SDK, such as 1.6. Then you'll need to associate with your project..

    I did it. I created it by AVD manager and have tried to start it by command line "emulator -avd and16". (and16 is the name of my virtual device) It is working fine if I start it standalone.

    Also I used "run configuration" to associate the target.

    But, finally, same errors still came out.

    Help.......

  7. #7
    Join Date
    Dec 2009
    Posts
    9

    Default Re: New Developer, Small problems... Need help

    Hi, Rdomloge

    I replied it one by one in very details. But that message was finally blocked.... It seems I can't write too much here.

    BTW, what you mentioned above have been verified and checked. All steps look correct as you said. My version of eclipse is 3.4.1. Also, the virtual device have been created and tried by command "emulator -avd and16" properly. However, they are not the solution to the errors that I faced.

    Do you have any more suggestions that I can try to work for?

    Thanks.

    PS: Oh... my lost page came back. See above post for more info.
    Last edited by hardwing; 12-16-2009 at 02:47 AM.

  8. #8
    Join Date
    Nov 2008
    Posts
    144

    Default Re: New Developer, Small problems... Need help

    Have you tried manually creating a folder called gen, despite it showing in the project tree? Seems crazy, but it could be showing in the project tree due to it being a critical project folder, but it might actually be missing from the filesystem...

  9. #9
    Join Date
    Dec 2009
    Posts
    9

    Default Re: New Developer, Small problems... Need help

    Yes, I found it in the filesystem.

    In order to avoid any unexpected conflict, I used a brand new computer to install eclipse 3.5.1, jdk 6, android sdk 2.0.1 again. Unfortunely, the result is negative... I still found same error messages.

    It looks Android SDK is not a friendly stuff. Doesn't work even for "Hello World"....

    BTW, how can I find the error log in more detail?? The existing message is too simple.

  10. #10
    Join Date
    Dec 2009
    Posts
    4

    Default Re: New Developer, Small problems... Need help


    I'd just like to add that I am also having this problem after following the installation and hello world instructions verbatim.

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. Widgets too small???
    By J4S0NI2ICE in forum General Motorola Chat
    Replies: 3
    Last Post: 11-12-2009, 06:36 PM
  2. small mistake
    By wbexpress in forum All About Andorid Software
    Replies: 4
    Last Post: 08-17-2009, 10:49 PM
  3. Two small things
    By Iceberg in forum General Phone Chat
    Replies: 6
    Last Post: 06-28-2009, 03:04 PM
  4. Small Favor With Digg.com
    By Stanovoy in forum Off-topic
    Replies: 8
    Last Post: 06-22-2009, 03:59 AM
  5. How Small a House Could you Live In?
    By JaceMan in forum Off-topic
    Replies: 26
    Last Post: 06-04-2009, 06:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •