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

Cannot reach id'd views in java code

Discussion in 'Android Help' started by Android Question, Dec 17, 2013.

?

nJBNElqAYTJE

  1. lhCcEVlnVAZ

    0 vote(s)
    0.0%
  2. FvNTWWcdUyO

    0 vote(s)
    0.0%
  1. Android Question

    Thread Starter

    I start a new project and can't even run it right away, because all (automatically added) resources in XML (android:id="@+id/the_java_name_of_a_view") can't be reached in my Java code (R.id.the_java_name_of_a_view).

    I noticed that (for some reason) the android.R-class is not imported automatically. But even fixing this doesn't help.

    What's going on here? How can I fix this?


    [I'm using
    Eclipse Version: Indigo Service Release 2 Build id: 20120216-1857
    and
    ADT Version: 22.3.0.v201310242005-887826]
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Cannot reach id'd
  1. mikewax
    Replies:
    0
    Views:
    179
  2. unet
    Replies:
    0
    Views:
    285
  3. DridriLaBastos
    Replies:
    0
    Views:
    240
  4. kgash
    Replies:
    6
    Views:
    445
  5. ixoni
    Replies:
    8
    Views:
    714
  6. oneytlam
    Replies:
    2
    Views:
    587
  7. Christopher Clayton
    Replies:
    0
    Views:
    373
  8. robertanisoiu
    Replies:
    1
    Views:
    1,142
  9. etijskens
    Replies:
    3
    Views:
    535
  10. Provasek
    Replies:
    5
    Views:
    605

Share This Page

Loading...