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.main cannot be resolved
>     }
>
>
>
> }

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to