1. Download our Official Android App: Forums for Android!

Apps Need a little help with Eclipse..

Discussion in 'Android Development' started by synonymous, Jul 3, 2010.

  1. synonymous

    synonymous Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jul 3, 2010

    Jul 3, 2010
    2
    0
    5
    First off, hello.

    I am new to coding, and to Android. I'm using the latest version of Eclipse. I have spent the past few days going over the basic "Hello World" and Layout tutorials, and am becoming quite frustrated. You see, even if I just create a new Android 1.1 project, and go to run it (without editing a thing), I get some random error message. Most of the time it is in R.layout.main. Eclipse keeps telling me there is a problem with main, but won't say what. I've seen nothing wrong with it, other than the fact that it won't turn blue (or purple, or any color for that matter). I'm on Win7 Ultimate 32-bit.

    Here is a screenshot (if it helps any).
    [​IMG]

    If someone could help me correct whatever is causing this (so I can continue learning), I would appreciate it.

    I posted this question on another site, but this one seems to have more active users.
     

    Advertisement

  2. blundell

    blundell Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    124
    Joined:
    Apr 23, 2010

    Apr 23, 2010
    124
    17
    38
    Software Engineer
    UK
    Delete the import android.R;
     
    synonymous likes this.
  3. synonymous

    synonymous Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jul 3, 2010

    Jul 3, 2010
    2
    0
    5
    That did the trick, thank you very much :D
     
  4. JiMMaR

    JiMMaR Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    363
    Joined:
    Jun 12, 2010

    Jun 12, 2010
    363
    57
    53
    I had a similar problem that took me a week to figure out
    didn't notice it imported android R instead of my application's R >.<
     

Share This Page

Loading...