Remove first import statement: > > import android.R; then recomile your app
Regards, meojunior On 29 Tháng Mười Hai 2008, 09:25, "[email protected]" <[email protected]> wrote: > Guess you're missing the main.xml file in res\layout folder. > > Create a res\layout\main.xml file, place a few views init and save. > This should update the R.java file with the correct reference to the > file > > On Dec 26, 3:06 pm, AndroidBegins <[email protected]> wrote: > > > package com.first; > > > import android.R; > > import android.app.Activity; > > import android.os.Bundle; > > > public class Testing extends Activity { > > /** Called when the activity is first created. */ > > @Override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); <<<<<<<<<--------------- > >R.layout.maincannotberesolved > > } > > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

