简体   繁体   中英

Missing R.java on Linux Eclipse Android project

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?

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

R.java将自动生成...首先解决项目将创建的所有其他错误 ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM