0

I am running Eclipse Indigo with Android SDK 4.0.3 and Google API in Linux 11.10. However, when I start up a new Android project, my R.java is no where to be found, hence resulting in the following issue:

package com.lol.asdf;

import android.app.Activity;
import android.os.Bundle;

public class AsdfActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

I have tried all suggestion on this page but it's no good.

Anyone have any ideas?

Community
  • 1
  • 1
czchlong
  • 2,294
  • 10
  • 45
  • 61

2 Answers2

0

your R.java is an auto generated class from the res/ folder. Check for error inside it. Try clean and rebuild your project too.

Blackbelt
  • 148,780
  • 26
  • 271
  • 285
0

R.java will generated automatically... first solve all other errors of your project it will be created...

MAC
  • 15,363
  • 8
  • 51
  • 92