android - setContentView(R.layout.main); error when start new project -
i'm starting develop android, , followed tutorial on google set up. i'm using eclipse , have both android sdk , eclipse plugin installed, when create new android project, error on line start.
my code :-
package khalid.app.fm; import android.app.activity; import android.os.bundle; import android.r.*; public class radioblancofmactivity extends activity { /** called when activity first created. */ @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); } }
remove
import android.r.*;
don't import android.r.
Comments
Post a Comment