Saturday, March 24, 2012

Re: [android-developers] Re: "R cannot be resolved to a variable" error in intro example code

What API are you building against?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Mar 22, 2012 at 11:20 AM, firebreather <michaelirvingbrown@gmail.com> wrote:
this is the MainActivity.java file in the Hello Android example code:

package com.dummies.android.helloandroid;


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

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

this is the error messages it generates:

Description     Resource        Path    Location        Type
R cannot be resolved to a variable      SilentmodetoggleActivity.java   /
silent mode toggle/src/com/dummies/android/silentmodetoggle     line 11
Java Problem

Description     Resource        Path    Location        Type
The method onAccuracyChanged(Sensor, int) of type
AccelerometerPlayActivity.SimulationView must override a superclass
method  AccelerometerPlayActivity.java  /AccelerometerPlayActivity/src/
com/example/android/accelerometerplay   line 457        Java Problem

Description     Resource        Path    Location        Type
The method onSensorChanged(SensorEvent) of type
AccelerometerPlayActivity.SimulationView must override a superclass
method  AccelerometerPlayActivity.java  /AccelerometerPlayActivity/src/
com/example/android/accelerometerplay   line 378        Java Problem


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment