Need a little help with Eclipse..


Last Updated:

  1. synonymous

    synonymous New Member This Topic's Starter

    Joined:
    Jul 3, 2010
    Messages:
    2
    Likes Received:
    0
    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

    Joined:
    Apr 23, 2010
    Messages:
    125
    Likes Received:
    17
    Delete the import android.R;
     
    synonymous likes this.
  3. synonymous

    synonymous New Member This Topic's Starter

    Joined:
    Jul 3, 2010
    Messages:
    2
    Likes Received:
    0
    That did the trick, thank you very much :D
     
  4. JiMMaR

    JiMMaR Well-Known Member

    Joined:
    Jun 12, 2010
    Messages:
    363
    Likes Received:
    57
    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...