Link to home
Start Free TrialLog in
Avatar of GlobaLevel
GlobaLevelFlag for United States of America

asked on

android - issues with R.java file ...resource not found...cannot be resolved to a varaible

Whenever I create a project, I am having issues with r.java file...in my .java file whenever I reference a textview via r.id.textview1...I get these errors cannot be resolved to a variable...

package COG__R_JAVA__12_11_2011;



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

public class COG__R_JAVA__12_11_2011Activity 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 convert to a varailbe.....
ASKER CERTIFIED SOLUTION
Avatar of 589158
589158
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GlobaLevel

ASKER

wow got that fixed...how hard is it to redirect to a new page(activity)..every link I look for it..is more than one line of code...