1. Are you ready for the Galaxy S20? Here is everything we know so far!

r.android r unresolved.. i looked but I may be blind...

Discussion in 'Android Development' started by ThaKidd04, Oct 22, 2010.

  1. ThaKidd04

    ThaKidd04 Lurker
    Thread Starter

    im just trying to write a basic app that will flash the screen or something stupid when i hit a button but im getting nowhere mainly because when i try:

    Button okBtn = (Button) findViewById(R.android.okBtn);

    i get some message telling me that r cannot be resolved... i dont know what to do im trying to go by online tutorials and the android documentation am i missing something?
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Member243850

    Member243850 Guest

    Hey again Thakidd04 dude!

    Don't worry! I had a shower and i am no longer stinky now! hahhaa lol :D

    I am a first year IT student! So you can worry extra now cause i most probably will give you the wrong instructions! :D hahahaa

    Have you done the hello world app yet by any chance buddy? ;)

    As long as you aren't a rapist U will fit in well here on the forums! :)
     
  3. ThaKidd04

    ThaKidd04 Lurker
    Thread Starter

    im kinda doing my own version of hello world (since hello world is already written when u make new project) i wanted to do something like flash the screen or make the text change to hello android from hello world but i cant even get to using an event listener because instantiating the damn button wont work >:| lol im wondering if maybe my sdk didnt install correctly
     
  4. ThaKidd04

    ThaKidd04 Lurker
    Thread Starter

    droidfail.jpg [2010-10-22 13:53:06 - main.xml] Unable to resolve id "@layout/@+okBtn" for attribute "id"
    [2010-10-22 13:53:18 - main.xml] Unable to resolve id "@layout/@+okBtn" for attribute "id"
    [2010-10-22 15:00:47 - helloButton] ERROR: Unable to open class file C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Java\Android\Test\helloButton\gen\com\helloBtn\R.java: No such file or directory

    why would i get a message like this in the console when i open a new project?
     
  5. ThaKidd04

    ThaKidd04 Lurker
    Thread Starter

    HAHA FIXED! ok apparently eclipse was trying to use the wrong instance of r. after scrolling down a bit i fixed the issue thanx stinky for trying to help tho.
     
  6. Member243850

    Member243850 Guest

    YES!!

    Well done dude! ;)

    Glad you came out on top :)

    Stinks
     
Loading...
Similar Threads - android unresolved looked
  1. pro100umarchik
    Replies:
    3
    Views:
    149
  2. cocotus
    Replies:
    2
    Views:
    493
  3. Leodev
    Replies:
    1
    Views:
    420
  4. Dw1892
    Replies:
    2
    Views:
    440
  5. The_Chief
    Replies:
    4
    Views:
    411
  6. 20GT
    Replies:
    7
    Views:
    540
  7. Joshua Jackson
    Replies:
    2
    Views:
    455
  8. Veez999
    Replies:
    6
    Views:
    807
  9. Wookbert
    Replies:
    2
    Views:
    728
  10. Mr Padh
    Replies:
    4
    Views:
    509

Share This Page

Loading...