• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Cannot reach id'd views in java code

nJBNElqAYTJE

  • lhCcEVlnVAZ

    Votes: 0 0.0%
  • FvNTWWcdUyO

    Votes: 0 0.0%

  • Total voters
    0
A

Android Question

Guest
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]
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones