Share Coding

Tutorials, Problems, Stuffs …

[Error] findViewById, not possible to add any ui

xxx cannot be resolved to a type?
The above error message always happen when the project start at the first day.

To confirm you are in this problem, add a textview or any UI at layout->xml, give it an ID,

<ListView
    android:id="@+id/listview2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
/>

 
Open gen/……./R.java to see if your id has not been add to here
Where is the listview2 ???

public static final class id {
    public static final int menu_settings=0x7f070001;
}

 
This is because you do not install the eclipse plugin ADT, it is not included in the Android SDK.

Please go to copy the following  link to copy newest URL and paste in eclipse->help->install new software and following the eclipse install plugin procedure to do it.

http://developer.android.com/tools/sdk/eclipse-adt.html

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: