android - cleaned project now its broken getting import errors -


i cleaned android project , im getting error saying need put import android.r; @ top, when says field isnt visible, example have line of coding

setcontentview(r.layout.inbox); 

when hover on error mark

multiple markers @ line     - inbox cannot resolved or not field     - r cannot resolved variable. 

im getting on of activity

update:

some errors xml causing r.java not rebuilt durring cleaning proces

description resource    path    location    type error: error: no resource found matches given name (at 'drawable' value '@drawable/friendrowbg'). friendslistselector.xml /atmebeta/res/layout    line 8  android aapt problem error: error: no resource found matches given name (at 'background' value '@drawable/friendslistselector').   friend_row.xml  /atmebeta/res/layout    line 1  android aapt problem error: error: no resource found matches given name (at 'drawable' value '@drawable/friendrowbg'). friendslistselector.xml /atmebeta/res/layout    line 2  android aapt problem error: error: no resource found matches given name (at 'drawable' value '@drawable/friendrowbg'). friendslistselector.xml /atmebeta/res/layout    line 6  android aapt problem error: error: no resource found matches given name (at 'listselector' value '@drawable/friendslistselector'). friends.xml /atmebeta/res/layout    line 29 android aapt problem 

you should not import android.r. there couple minutes (~2) r.java recreated @ times.

if r.java not created there problem within res folder. helped op (found in comments well) @drawable reference referencing items located within res/drawable/, not within res/layout. layout folder layout xml files, while drawable apps images.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -