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

2012-03-24 Thread Justin Anderson
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 michaelirvingbr...@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 ResourcePathLocationType
 R cannot be resolved to a variable  SilentmodetoggleActivity.java   /
 silent mode toggle/src/com/dummies/android/silentmodetoggle line 11
 Java Problem

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

 Description ResourcePathLocationType
 The method onSensorChanged(SensorEvent) of type
 AccelerometerPlayActivity.SimulationView must override a superclass
 method  AccelerometerPlayActivity.java  /AccelerometerPlayActivity/src/
 com/example/android/accelerometerplay   line 378Java 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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2012-03-22 Thread firebreather
yes, the res/layout/main.xml  file in the hello world example code in
the android adt reads as follows in eclipse for me:

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical 

TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello /

/LinearLayout

michael brown

On Mar 22, 12:02 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Do you have a file called res/layout/main.xml in your project?

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

 On Thu, Mar 22, 2012 at 11:00 AM, firebreather michaelirvingbr...@gmail.com



  wrote:
  when i try to run the intro example hello world code i get the error
  message R cannot be resolved to a variable, for the
  setContentView(R.layout.main) line of the intro code. since this bug
  is the the android adt's own intro example code everyone would
  encounter this error starting out, and when i do i google search of R
  cannot be resolved to a variable error i get 61,600,000 results of
  newbies running into the same bug as me starting out. there havent
  been many anwers though. one suggestion was:

  While going through the Android sample tutorials, I would often use
  the Ctrl + Shift + O command to Organize Imports and generate any
  missing import statements. Sometimes this would generate the incorrect
  import statement which would hide the R.java class that is
  automatically generated when you build.

  typing Ctrl + Shift + O does indeed make a hidden import
  android.R; command suddenly appear in the example hello world code.
  however, just commenting this out doesnt solve anything, it still
  gives the R cannot be resolved to a variable message and wont
  compile. typing Ctrl + Shift + O again just makes the hidden import
  android.R; message appear again.

  youd think since this is there own hello world example code they'd
  have this bug fixed or addressed.

  --
  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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2012-03-22 Thread firebreather
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 ResourcePathLocationType
R cannot be resolved to a variable  SilentmodetoggleActivity.java   /
silent mode toggle/src/com/dummies/android/silentmodetoggle line 11
Java Problem

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

Description ResourcePathLocationType
The method onSensorChanged(SensorEvent) of type
AccelerometerPlayActivity.SimulationView must override a superclass
method  AccelerometerPlayActivity.java  /AccelerometerPlayActivity/src/
com/example/android/accelerometerplay   line 378Java 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2012-03-22 Thread firebreather
i got an email which solved the first R cannot be resolved to a
variable from Chuck Krutsinger, who has been very patient with this
newbie:

The import you refer to is not technically a bug.  The compiler is
looking for a file named R, which it will find in the gen directory
if your IDE has generated it.  So, follow these steps:

1) On the Project menu, make sure Build Automatically is NOT checked.
2) Clean the project in question, making sure that the build checkbox
is NOT checked.
3) Remove the import for R.java
4) On the Project menu, select Build Automatically.

At this point, you should not need the import because the file R.java
should have been generated and placed in the gen directory.  If at
this point you do a Ctrl-Shift-O it should not put that import back.
If you leave the Build Automatically selected, you should not see this
problem at all any more.

doing the clean command while build automatically was Not checked
seems to have fixed the first error, although i still have 2 more,
thank you Chuck.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: R cannot be resolved

2010-07-24 Thread mah
When pulling in existing projects, I find that often I need to right-
click the project in the work bench, go to the Android Tools entry,
and select Fix Project Properties.

On Jul 20, 6:31 pm, Marc marc.d.pa...@gmail.com wrote:
 Hi.

 I'm an Android development newb, and I got a problem with Eclipse. I
 tried a few tutorials, but I can't run the tutorial-apps because it
 pops up with this error: R cannot be resolved .
 I've searched a lot of different fora, where people describes the same
 problem, but I just can't fix it.
 A lot of people recommend unchecking Build automatically, Cleaning
 and rechecking Build automatically, people also suggest that it's a
 line that says import R. that causes the problem, but it feels like
 I've tried everything and I still can't make it work...

 I use this SDK :http://developer.android.com/sdk/index.html
 along with 3 different versions of Eclipse, but it's the same error-
 message i get in every version.

 NB.: I don't have a .classpath file, nor do I have a .project file.
 Could that cause the problem ?

 Help is greatly appreciated.

 Thanks.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: R cannot be resolved

2010-07-21 Thread Kacee
Try creating a helloAndroid project in Eclipse and run it. If it
runs successfully, then there is no problem with yr set up.

The problem might be only with tutorial apps

Let us know.

Cheers,
Kacee


On Jul 21, 10:56 pm, Satya Komatineni satya.komatin...@gmail.com
wrote:
 It is a basic question, but let me ask you anyway, do you have the ADT
 installed in Eclipse?

 When you expand the project do you see an R.java in a sub directory
 similar to what is at the following url?

 http://www.satyakomatineni.com/akc/filestorage/satya/documentfiles/32...

 Perhaps, give your directory structure in that project and probably
 the contents of the R.java file.

 Satya Komatinenihttp://www.satyakomatineni.comhttp://www.androidbook.com



 On Tue, Jul 20, 2010 at 6:31 PM, Marc marc.d.pa...@gmail.com wrote:
  Hi.

  I'm an Android development newb, and I got a problem with Eclipse. I
  tried a few tutorials, but I can't run the tutorial-apps because it
  pops up with this error: R cannot be resolved .
  I've searched a lot of different fora, where people describes the same
  problem, but I just can't fix it.
  A lot of people recommend unchecking Build automatically, Cleaning
  and rechecking Build automatically, people also suggest that it's a
  line that says import R. that causes the problem, but it feels like
  I've tried everything and I still can't make it work...

  I use this SDK :http://developer.android.com/sdk/index.html
  along with 3 different versions of Eclipse, but it's the same error-
  message i get in every version.

  NB.: I don't have a .classpath file, nor do I have a .project file.
  Could that cause the problem ?

  Help is greatly appreciated.

  Thanks.

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: R cannot be resolved

2010-07-21 Thread Connick
I often get those errors when importing projects ...and I have to do an
explicit clean on the project then that error goes away. Don't know if
you're seeing the same behavior (on OS X) but hope that helps.


On Wed, Jul 21, 2010 at 2:00 PM, Kacee komal...@gmail.com wrote:

 Try creating a helloAndroid project in Eclipse and run it. If it
 runs successfully, then there is no problem with yr set up.

 The problem might be only with tutorial apps

 Let us know.

 Cheers,
 Kacee


 On Jul 21, 10:56 pm, Satya Komatineni satya.komatin...@gmail.com
 wrote:
  It is a basic question, but let me ask you anyway, do you have the ADT
  installed in Eclipse?
 
  When you expand the project do you see an R.java in a sub directory
  similar to what is at the following url?
 
  http://www.satyakomatineni.com/akc/filestorage/satya/documentfiles/32...
 
  Perhaps, give your directory structure in that project and probably
  the contents of the R.java file.
 
  Satya Komatinenihttp://www.satyakomatineni.comhttp://www.androidbook.com
 
 
 
  On Tue, Jul 20, 2010 at 6:31 PM, Marc marc.d.pa...@gmail.com wrote:
   Hi.
 
   I'm an Android development newb, and I got a problem with Eclipse. I
   tried a few tutorials, but I can't run the tutorial-apps because it
   pops up with this error: R cannot be resolved .
   I've searched a lot of different fora, where people describes the same
   problem, but I just can't fix it.
   A lot of people recommend unchecking Build automatically, Cleaning
   and rechecking Build automatically, people also suggest that it's a
   line that says import R. that causes the problem, but it feels like
   I've tried everything and I still can't make it work...
 
   I use this SDK :http://developer.android.com/sdk/index.html
   along with 3 different versions of Eclipse, but it's the same error-
   message i get in every version.
 
   NB.: I don't have a .classpath file, nor do I have a .project file.
   Could that cause the problem ?
 
   Help is greatly appreciated.
 
   Thanks.
 
   --
   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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- Hide quoted
 text -
 
  - Show quoted text -

 --
 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: R cannot be resolved

2010-07-21 Thread Marc
I do have ADT installed and I do have one R.java file, like this Gen --
 App name -- R.java

On 21 Jul., 19:56, Satya Komatineni satya.komatin...@gmail.com
wrote:
 It is a basic question, but let me ask you anyway, do you have the ADT
 installed in Eclipse?

 When you expand the project do you see an R.java in a sub directory
 similar to what is at the following url?

 http://www.satyakomatineni.com/akc/filestorage/satya/documentfiles/32...

 Perhaps, give your directory structure in that project and probably
 the contents of the R.java file.

 Satya Komatinenihttp://www.satyakomatineni.comhttp://www.androidbook.com

 On Tue, Jul 20, 2010 at 6:31 PM, Marc marc.d.pa...@gmail.com wrote:
  Hi.

  I'm an Android development newb, and I got a problem with Eclipse. I
  tried a few tutorials, but I can't run the tutorial-apps because it
  pops up with this error: R cannot be resolved .
  I've searched a lot of different fora, where people describes the same
  problem, but I just can't fix it.
  A lot of people recommend unchecking Build automatically, Cleaning
  and rechecking Build automatically, people also suggest that it's a
  line that says import R. that causes the problem, but it feels like
  I've tried everything and I still can't make it work...

  I use this SDK :http://developer.android.com/sdk/index.html
  along with 3 different versions of Eclipse, but it's the same error-
  message i get in every version.

  NB.: I don't have a .classpath file, nor do I have a .project file.
  Could that cause the problem ?

  Help is greatly appreciated.

  Thanks.

  --
  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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: R cannot be resolved

2010-07-21 Thread DanH
What do you know about Java?

The R class is built automatically by the Android build process.
(R.java is in your project's gen directory.)   It's mainly a container
for a bunch of inner classes (the R.whatever classes) which in turn
contain numeric constants used by the UI stuff.

All sorts of errors occur when newbies encounter this.  Often folks
will erroneously import an R from somewhere (the R you want is in
your package and doesn't need an import -- but is your package
specified correctly in your source file?).  Many other pitfalls here,
including some related to the build tools.

On Jul 20, 5:31 pm, Marc marc.d.pa...@gmail.com wrote:
 Hi.

 I'm an Android development newb, and I got a problem with Eclipse. I
 tried a few tutorials, but I can't run the tutorial-apps because it
 pops up with this error: R cannot be resolved .
 I've searched a lot of different fora, where people describes the same
 problem, but I just can't fix it.
 A lot of people recommend unchecking Build automatically, Cleaning
 and rechecking Build automatically, people also suggest that it's a
 line that says import R. that causes the problem, but it feels like
 I've tried everything and I still can't make it work...

 I use this SDK :http://developer.android.com/sdk/index.html
 along with 3 different versions of Eclipse, but it's the same error-
 message i get in every version.

 NB.: I don't have a .classpath file, nor do I have a .project file.
 Could that cause the problem ?

 Help is greatly appreciated.

 Thanks.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: R cannot be resolved

2010-07-21 Thread Maps.Huge.Info (Maps API Guru)
One thing DanH left out, locate and delete any spurious R.java files,
especially if they are in your source tree. Sometimes they pop into
the mix in unexpected locations, which will cause issues. After
deleting R.java files, do a clean on your project. Also make sure you
have no import statements for R.java in your sources.

-John Coryat

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-13 Thread Michael

I'm running fedora 10, and I've had similar issues.  Cleaning is part
of the solution.  However, I had a further problem that needed to be
resolved first.  As with previous releases of the SDK, I've found that
I needed to execute chmod 755 * in the 'tools' directory.  With this
release, there are 2 additional 'tools' directories that need to have
the proper permissions set (via the same command).  These are under
the 'platforms' directories, .../android-sdk-linux_x86-1.5_r1/
platforms/android-1.1/tools and .../android-sdk-linux_x86-1.5_r1/
platforms/android-1.5/tools.  Hope this helps someone.

On May 6, 9:20 am, pis4vlg pis4...@gmail.com wrote:
 I think this is the right answer. When face the same problem, I fixed
 it after clean the project.

 thanks to Raphael

 vincent

 On Apr 29, 1:31 am, Raphael r...@android.com wrote:

  The first time you convert an old project to the 0.9 ADT with 1.5 SDK,
  you should try to use Project  Clean if you see any error on missing
  or duplicate classes.

  R/

  On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

   Do you have to uninstall before you reinstall it? I just updated my
   ADT to 0.9 (the non-pre ADT), and update to 1.5_R1 SDK, but I still
   get the same error if I try to compile for Android1.1

   On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
   I saw the same error.
   so I reinstalled ADT and recheck build target Android1.1
   then I can see R.java which is generated at gen folder.

   try this.

   On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

Hi,

I just tried that. But it does not work. After removing the file, I
still get the same error when I try to compile for 1.1 SDK.

Worse, when I try to compile for1.5SDK after that, I get the
following error but application compiled successfully
Conversion to Dalvik format failed with error 1

On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
wrote:

 considering thatR.javais a generated file, try deleting it and see
 if the environment rebuilds according to your preference.

 On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

  I updated to1.5SDK pre, together with the ADT. I followed the
  instruction to select Android1.5as target by right clicking on the
  project, PreferencesAndroid. In this window there are 3 options,
  Android 1.1
  Android1.5
  Google APIs

  I selected Android1.5and Apply, clicked OK. Application compiled
  nicely.

  If I go back to the same Preferences and select Android 1.1, 
  Apply, I
  can no longer compile my application successfully.
  I get hundreds of the same error
  R cannot be resolved

  Then I try to open this project in another computer that I have not
  updated the SDK yet. I get the same error. Can anyone help to solve
  this? I'm trapped until the new SDK is out.



--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-06 Thread pis4vlg

I think this is the right answer. When face the same problem, I fixed
it after clean the project.

thanks to Raphael

vincent

On Apr 29, 1:31 am, Raphael r...@android.com wrote:
 The first time you convert an old project to the 0.9 ADT with 1.5 SDK,
 you should try to use Project  Clean if you see any error on missing
 or duplicate classes.

 R/

 On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

  Do you have to uninstall before you reinstall it? I just updated my
  ADT to 0.9 (the non-pre ADT), and update to 1.5_R1 SDK, but I still
  get the same error if I try to compile for Android1.1

  On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
  I saw the same error.
  so I reinstalled ADT and recheck build target Android1.1
  then I can see R.java which is generated at gen folder.

  try this.

  On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

   Hi,

   I just tried that. But it does not work. After removing the file, I
   still get the same error when I try to compile for 1.1 SDK.

   Worse, when I try to compile for1.5SDK after that, I get the
   following error but application compiled successfully
   Conversion to Dalvik format failed with error 1

   On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
   wrote:

considering thatR.javais a generated file, try deleting it and see
if the environment rebuilds according to your preference.

On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

 I updated to1.5SDK pre, together with the ADT. I followed the
 instruction to select Android1.5as target by right clicking on the
 project, PreferencesAndroid. In this window there are 3 options,
 Android 1.1
 Android1.5
 Google APIs

 I selected Android1.5and Apply, clicked OK. Application compiled
 nicely.

 If I go back to the same Preferences and select Android 1.1, Apply, I
 can no longer compile my application successfully.
 I get hundreds of the same error
 R cannot be resolved

 Then I try to open this project in another computer that I have not
 updated the SDK yet. I get the same error. Can anyone help to solve
 this? I'm trapped until the new SDK is out.



--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen

Strange. When I manually deleted all the Import statements and then
Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I
had been
using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated
files but there may have been some stale imports that needed to be
manually deleted (I thought Organize-Imports would do that
automatically for me? but
apparently not?). Anyway, I'm cleaning up the files using this method
and it works
for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks
for the
assistance.

jh

On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote:
 Yes, I selected Android 1.1 platform API Level 2.
 I also made sure src and gen folders were included in the Build path.
 I also included res folder in Build path but it had no effect.

 FYI: I am able to build a new Hello World program that just works.
 But,
 I can't figure out why that one works and my migrated projects don't
 work?

 jh

 On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote:

  Did you setup the Build target for your older project?

  Xav

  On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote:

   I have the same problem i.e. after converting to Android 1.5 SDK,
   my project files won't compile due to dozens of R.* files cannot be
   resolved.

   I've tried:
     1. Adding the sdk 'tools' to my path
     2. Reinstalling ADT
     3. Cleaning my project

   Nothing is working. Anyone have any other suggestions. I'm stopped.

   jh

   On Apr 28, 10:31 am, Raphael r...@android.com wrote:
   The first time you convert an old project to the 0.9 ADT with1.5SDK,
   you should try to use Project  Clean if you see any error on missing
   or duplicate classes.

   R/

   On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

Do you have to uninstall before you reinstall it? I just updated my
ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still
get the same error if I try to compile for Android1.1

On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
I saw the same error.
so I reinstalled ADT and recheck build target Android1.1
then I can seeR.java which is generated at gen folder.

try this.

On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

 Hi,

 I just tried that. But it does not work. After removing the file, I
 still get the same error when I try to compile for 1.1 SDK.

 Worse, when I try to compile for1.5SDK after that, I get the
 following error but application compiled successfully
 Conversion to Dalvik format failed with error 1

 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
 wrote:

  considering thatR.javais a generated file, try deleting it and see
  if the environment rebuilds according to your preference.

  On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

   I updated to1.5SDK pre, together with the ADT. I followed the
   instruction to select Android1.5as target by right clicking on 
   the
   project, PreferencesAndroid. In this window there are 3 
   options,
   Android 1.1
   Android1.5
   Google APIs

   I selected Android1.5and Apply, clicked OK. Application compiled
   nicely.

   If I go back to the same Preferences and select Android 1.1, 
   Apply, I
   can no longer compile my application successfully.
   I get hundreds of the same error
  Rcannotberesolved

   Then I try to open this project in another computer that I have 
   not
   updated the SDK yet. I get the same error. Can anyone help to 
   solve
   this? I'm trapped until the new SDK is out.

  --
  Xavier Ducrohet
  Android Developer Tools Engineer
  Google Inc.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen

More info...it is specifically the import android.R statement that
is
causing the problem. It was in all my old files. When I delete it and
re-generate
the new imports, the problem goes away.

Maybe this can be fixed in Eclipse or ADT. I'm sure other people must
also
be having this problem.

jh

On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote:
 Strange. When I manually deleted all the Import statements and then
 Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I
 had been
 using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated
 files but there may have been some stale imports that needed to be
 manually deleted (I thought Organize-Imports would do that
 automatically for me? but
 apparently not?). Anyway, I'm cleaning up the files using this method
 and it works
 for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks
 for the
 assistance.

 jh

 On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote:

  Yes, I selected Android 1.1 platform API Level 2.
  I also made sure src and gen folders were included in the Build path.
  I also included res folder in Build path but it had no effect.

  FYI: I am able to build a new Hello World program that just works.
  But,
  I can't figure out why that one works and my migrated projects don't
  work?

  jh

  On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote:

   Did you setup the Build target for your older project?

   Xav

   On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com 
   wrote:

I have the same problem i.e. after converting to Android 1.5 SDK,
my project files won't compile due to dozens of R.* files cannot be
resolved.

I've tried:
  1. Adding the sdk 'tools' to my path
  2. Reinstalling ADT
  3. Cleaning my project

Nothing is working. Anyone have any other suggestions. I'm stopped.

jh

On Apr 28, 10:31 am, Raphael r...@android.com wrote:
The first time you convert an old project to the 0.9 ADT with1.5SDK,
you should try to use Project  Clean if you see any error on missing
or duplicate classes.

R/

On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

 Do you have to uninstall before you reinstall it? I just updated my
 ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still
 get the same error if I try to compile for Android1.1

 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
 I saw the same error.
 so I reinstalled ADT and recheck build target Android1.1
 then I can seeR.java which is generated at gen folder.

 try this.

 On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

  Hi,

  I just tried that. But it does not work. After removing the file, 
  I
  still get the same error when I try to compile for 1.1 SDK.

  Worse, when I try to compile for1.5SDK after that, I get the
  following error but application compiled successfully
  Conversion to Dalvik format failed with error 1

  On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
  wrote:

   considering thatR.javais a generated file, try deleting it and 
   see
   if the environment rebuilds according to your preference.

   On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

I updated to1.5SDK pre, together with the ADT. I followed the
instruction to select Android1.5as target by right clicking 
on the
project, PreferencesAndroid. In this window there are 3 
options,
Android 1.1
Android1.5
Google APIs

I selected Android1.5and Apply, clicked OK. Application 
compiled
nicely.

If I go back to the same Preferences and select Android 1.1, 
Apply, I
can no longer compile my application successfully.
I get hundreds of the same error
   Rcannotberesolved

Then I try to open this project in another computer that I 
have not
updated the SDK yet. I get the same error. Can anyone help to 
solve
this? I'm trapped until the new SDK is out.

   --
   Xavier Ducrohet
   Android Developer Tools Engineer
   Google Inc.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen

More info...it is specifically the import android.R statement that
is
causing the problem. It was in all my old files. When I delete it and
re-generate
the new imports, the problem goes away.

Maybe this can be fixed in Eclipse or ADT. I'm sure other people must
also
be having this problem.

jh

On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote:
 Strange. When I manually deleted all the Import statements and then
 Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I
 had been
 using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated
 files but there may have been some stale imports that needed to be
 manually deleted (I thought Organize-Imports would do that
 automatically for me? but
 apparently not?). Anyway, I'm cleaning up the files using this method
 and it works
 for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks
 for the
 assistance.

 jh

 On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote:

  Yes, I selected Android 1.1 platform API Level 2.
  I also made sure src and gen folders were included in the Build path.
  I also included res folder in Build path but it had no effect.

  FYI: I am able to build a new Hello World program that just works.
  But,
  I can't figure out why that one works and my migrated projects don't
  work?

  jh

  On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote:

   Did you setup the Build target for your older project?

   Xav

   On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com 
   wrote:

I have the same problem i.e. after converting to Android 1.5 SDK,
my project files won't compile due to dozens of R.* files cannot be
resolved.

I've tried:
  1. Adding the sdk 'tools' to my path
  2. Reinstalling ADT
  3. Cleaning my project

Nothing is working. Anyone have any other suggestions. I'm stopped.

jh

On Apr 28, 10:31 am, Raphael r...@android.com wrote:
The first time you convert an old project to the 0.9 ADT with1.5SDK,
you should try to use Project  Clean if you see any error on missing
or duplicate classes.

R/

On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

 Do you have to uninstall before you reinstall it? I just updated my
 ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still
 get the same error if I try to compile for Android1.1

 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
 I saw the same error.
 so I reinstalled ADT and recheck build target Android1.1
 then I can seeR.java which is generated at gen folder.

 try this.

 On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

  Hi,

  I just tried that. But it does not work. After removing the file, 
  I
  still get the same error when I try to compile for 1.1 SDK.

  Worse, when I try to compile for1.5SDK after that, I get the
  following error but application compiled successfully
  Conversion to Dalvik format failed with error 1

  On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
  wrote:

   considering thatR.javais a generated file, try deleting it and 
   see
   if the environment rebuilds according to your preference.

   On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

I updated to1.5SDK pre, together with the ADT. I followed the
instruction to select Android1.5as target by right clicking 
on the
project, PreferencesAndroid. In this window there are 3 
options,
Android 1.1
Android1.5
Google APIs

I selected Android1.5and Apply, clicked OK. Application 
compiled
nicely.

If I go back to the same Preferences and select Android 1.1, 
Apply, I
can no longer compile my application successfully.
I get hundreds of the same error
   Rcannotberesolved

Then I try to open this project in another computer that I 
have not
updated the SDK yet. I get the same error. Can anyone help to 
solve
this? I'm trapped until the new SDK is out.

   --
   Xavier Ducrohet
   Android Developer Tools Engineer
   Google Inc.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen

More info...it is specifically the import android.R statement that
is
causing the problem. It was in all my old files. When I delete it and
re-generate
the new imports, the problem goes away.

Maybe this can be fixed in Eclipse or ADT. I'm sure other people must
also
be having this problem.

jh

On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote:
 Strange. When I manually deleted all the Import statements and then
 Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I
 had been
 using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated
 files but there may have been some stale imports that needed to be
 manually deleted (I thought Organize-Imports would do that
 automatically for me? but
 apparently not?). Anyway, I'm cleaning up the files using this method
 and it works
 for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks
 for the
 assistance.

 jh

 On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote:

  Yes, I selected Android 1.1 platform API Level 2.
  I also made sure src and gen folders were included in the Build path.
  I also included res folder in Build path but it had no effect.

  FYI: I am able to build a new Hello World program that just works.
  But,
  I can't figure out why that one works and my migrated projects don't
  work?

  jh

  On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote:

   Did you setup the Build target for your older project?

   Xav

   On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com 
   wrote:

I have the same problem i.e. after converting to Android 1.5 SDK,
my project files won't compile due to dozens of R.* files cannot be
resolved.

I've tried:
  1. Adding the sdk 'tools' to my path
  2. Reinstalling ADT
  3. Cleaning my project

Nothing is working. Anyone have any other suggestions. I'm stopped.

jh

On Apr 28, 10:31 am, Raphael r...@android.com wrote:
The first time you convert an old project to the 0.9 ADT with1.5SDK,
you should try to use Project  Clean if you see any error on missing
or duplicate classes.

R/

On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

 Do you have to uninstall before you reinstall it? I just updated my
 ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still
 get the same error if I try to compile for Android1.1

 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
 I saw the same error.
 so I reinstalled ADT and recheck build target Android1.1
 then I can seeR.java which is generated at gen folder.

 try this.

 On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

  Hi,

  I just tried that. But it does not work. After removing the file, 
  I
  still get the same error when I try to compile for 1.1 SDK.

  Worse, when I try to compile for1.5SDK after that, I get the
  following error but application compiled successfully
  Conversion to Dalvik format failed with error 1

  On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
  wrote:

   considering thatR.javais a generated file, try deleting it and 
   see
   if the environment rebuilds according to your preference.

   On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

I updated to1.5SDK pre, together with the ADT. I followed the
instruction to select Android1.5as target by right clicking 
on the
project, PreferencesAndroid. In this window there are 3 
options,
Android 1.1
Android1.5
Google APIs

I selected Android1.5and Apply, clicked OK. Application 
compiled
nicely.

If I go back to the same Preferences and select Android 1.1, 
Apply, I
can no longer compile my application successfully.
I get hundreds of the same error
   Rcannotberesolved

Then I try to open this project in another computer that I 
have not
updated the SDK yet. I get the same error. Can anyone help to 
solve
this? I'm trapped until the new SDK is out.

   --
   Xavier Ducrohet
   Android Developer Tools Engineer
   Google Inc.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-30 Thread Richard Schilling

I had the same problem but solved it.  Perhaps this will help:  Make
sure the 'gen' directory is part of the java source build path.

Right Click on project name (Package Explorer) - Properties (Context
Menu) -
Java Build Path (tree) - Source (tab) - Add Folder (Button) -
gen (directory name)
- OK (BUtton)

Now R will be properly resolved.

Richard Schilling
Root Wireless, Inc.

On Apr 28, 10:31 am, Raphael r...@android.com wrote:
 The first time you convert an old project to the 0.9 ADT with 1.5 SDK,
 you should try to use Project  Clean if you see any error on missing
 or duplicate classes.

 R/

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-30 Thread John B. Hansen

I also checked and the 'gen' dir is in my java source build path.
Its still not working.

jh

On Apr 30, 2:54 pm, John B. Hansen jnahan...@gmail.com wrote:
 I have the same problem i.e. after converting to Android 1.5 SDK,
 my project files won't compile due to dozens of R.* files cannot be
 resolved.

 I've tried:
    1. Adding the sdk 'tools' to my path
    2. Reinstalling ADT
    3. Cleaning my project

 Nothing is working. Anyone have any other suggestions. I'm stopped.

 jh

 On Apr 28, 10:31 am, Raphael r...@android.com wrote:

  The first time you convert an old project to the 0.9 ADT with1.5SDK,
  you should try to use Project  Clean if you see any error on missing
  or duplicate classes.

  R/

  On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

   Do you have to uninstall before you reinstall it? I just updated my
   ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still
   get the same error if I try to compile for Android1.1

   On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
   I saw the same error.
   so I reinstalled ADT and recheck build target Android1.1
   then I can seeR.java which is generated at gen folder.

   try this.

   On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

Hi,

I just tried that. But it does not work. After removing the file, I
still get the same error when I try to compile for 1.1 SDK.

Worse, when I try to compile for1.5SDK after that, I get the
following error but application compiled successfully
Conversion to Dalvik format failed with error 1

On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
wrote:

 considering thatR.javais a generated file, try deleting it and see
 if the environment rebuilds according to your preference.

 On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

  I updated to1.5SDK pre, together with the ADT. I followed the
  instruction to select Android1.5as target by right clicking on the
  project, PreferencesAndroid. In this window there are 3 options,
  Android 1.1
  Android1.5
  Google APIs

  I selected Android1.5and Apply, clicked OK. Application compiled
  nicely.

  If I go back to the same Preferences and select Android 1.1, 
  Apply, I
  can no longer compile my application successfully.
  I get hundreds of the same error
 Rcannotberesolved

  Then I try to open this project in another computer that I have not
  updated the SDK yet. I get the same error. Can anyone help to solve
  this? I'm trapped until the new SDK is out.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-30 Thread Xavier Ducrohet

Did you setup the Build target for your older project?

Xav

On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote:

 I have the same problem i.e. after converting to Android 1.5 SDK,
 my project files won't compile due to dozens of R.* files cannot be
 resolved.

 I've tried:
   1. Adding the sdk 'tools' to my path
   2. Reinstalling ADT
   3. Cleaning my project

 Nothing is working. Anyone have any other suggestions. I'm stopped.

 jh

 On Apr 28, 10:31 am, Raphael r...@android.com wrote:
 The first time you convert an old project to the 0.9 ADT with1.5SDK,
 you should try to use Project  Clean if you see any error on missing
 or duplicate classes.

 R/

 On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

  Do you have to uninstall before you reinstall it? I just updated my
  ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still
  get the same error if I try to compile for Android1.1

  On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
  I saw the same error.
  so I reinstalled ADT and recheck build target Android1.1
  then I can seeR.java which is generated at gen folder.

  try this.

  On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

   Hi,

   I just tried that. But it does not work. After removing the file, I
   still get the same error when I try to compile for 1.1 SDK.

   Worse, when I try to compile for1.5SDK after that, I get the
   following error but application compiled successfully
   Conversion to Dalvik format failed with error 1

   On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
   wrote:

considering thatR.javais a generated file, try deleting it and see
if the environment rebuilds according to your preference.

On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

 I updated to1.5SDK pre, together with the ADT. I followed the
 instruction to select Android1.5as target by right clicking on the
 project, PreferencesAndroid. In this window there are 3 options,
 Android 1.1
 Android1.5
 Google APIs

 I selected Android1.5and Apply, clicked OK. Application compiled
 nicely.

 If I go back to the same Preferences and select Android 1.1, Apply, 
 I
 can no longer compile my application successfully.
 I get hundreds of the same error
Rcannotberesolved

 Then I try to open this project in another computer that I have not
 updated the SDK yet. I get the same error. Can anyone help to solve
 this? I'm trapped until the new SDK is out.
 




-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-30 Thread John B. Hansen

Yes, I selected Android 1.1 platform API Level 2.
I also made sure src and gen folders were included in the Build path.
I also included res folder in Build path but it had no effect.

FYI: I am able to build a new Hello World program that just works.
But,
I can't figure out why that one works and my migrated projects don't
work?

jh

On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote:
 Did you setup the Build target for your older project?

 Xav

 On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote:





  I have the same problem i.e. after converting to Android 1.5 SDK,
  my project files won't compile due to dozens of R.* files cannot be
  resolved.

  I've tried:
    1. Adding the sdk 'tools' to my path
    2. Reinstalling ADT
    3. Cleaning my project

  Nothing is working. Anyone have any other suggestions. I'm stopped.

  jh

  On Apr 28, 10:31 am, Raphael r...@android.com wrote:
  The first time you convert an old project to the 0.9 ADT with1.5SDK,
  you should try to use Project  Clean if you see any error on missing
  or duplicate classes.

  R/

  On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

   Do you have to uninstall before you reinstall it? I just updated my
   ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still
   get the same error if I try to compile for Android1.1

   On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
   I saw the same error.
   so I reinstalled ADT and recheck build target Android1.1
   then I can seeR.java which is generated at gen folder.

   try this.

   On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

Hi,

I just tried that. But it does not work. After removing the file, I
still get the same error when I try to compile for 1.1 SDK.

Worse, when I try to compile for1.5SDK after that, I get the
following error but application compiled successfully
Conversion to Dalvik format failed with error 1

On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
wrote:

 considering thatR.javais a generated file, try deleting it and see
 if the environment rebuilds according to your preference.

 On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

  I updated to1.5SDK pre, together with the ADT. I followed the
  instruction to select Android1.5as target by right clicking on the
  project, PreferencesAndroid. In this window there are 3 options,
  Android 1.1
  Android1.5
  Google APIs

  I selected Android1.5and Apply, clicked OK. Application compiled
  nicely.

  If I go back to the same Preferences and select Android 1.1, 
  Apply, I
  can no longer compile my application successfully.
  I get hundreds of the same error
 Rcannotberesolved

  Then I try to open this project in another computer that I have 
  not
  updated the SDK yet. I get the same error. Can anyone help to 
  solve
  this? I'm trapped until the new SDK is out.

 --
 Xavier Ducrohet
 Android Developer Tools Engineer
 Google Inc.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-28 Thread André Charles Legendre

Hi hc

Under Unix to add tools directory to PATH you can do it in
.bash_profile of your user :
PATH=$PATH:/tools
export PATH

where xxx is the PATH of where you put the SDK

Andre

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-28 Thread Raphael

The first time you convert an old project to the 0.9 ADT with 1.5 SDK,
you should try to use Project  Clean if you see any error on missing
or duplicate classes.

R/


On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote:

 Do you have to uninstall before you reinstall it? I just updated my
 ADT to 0.9 (the non-pre ADT), and update to 1.5_R1 SDK, but I still
 get the same error if I try to compile for Android1.1

 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
 I saw the same error.
 so I reinstalled ADT and recheck build target Android1.1
 then I can see R.java which is generated at gen folder.

 try this.

 On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

  Hi,

  I just tried that. But it does not work. After removing the file, I
  still get the same error when I try to compile for 1.1 SDK.

  Worse, when I try to compile for1.5SDK after that, I get the
  following error but application compiled successfully
  Conversion to Dalvik format failed with error 1

  On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
  wrote:

   considering thatR.javais a generated file, try deleting it and see
   if the environment rebuilds according to your preference.

   On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

I updated to1.5SDK pre, together with the ADT. I followed the
instruction to select Android1.5as target by right clicking on the
project, PreferencesAndroid. In this window there are 3 options,
Android 1.1
Android1.5
Google APIs

I selected Android1.5and Apply, clicked OK. Application compiled
nicely.

If I go back to the same Preferences and select Android 1.1, Apply, I
can no longer compile my application successfully.
I get hundreds of the same error
R cannot be resolved

Then I try to open this project in another computer that I have not
updated the SDK yet. I get the same error. Can anyone help to solve
this? I'm trapped until the new SDK is out.
 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread Satya Komatineni

considering that R.java is a generated file, try deleting it and see
if the environment rebuilds according to your preference.


On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

 I updated to 1.5 SDK pre, together with the ADT. I followed the
 instruction to select Android 1.5 as target by right clicking on the
 project, PreferencesAndroid. In this window there are 3 options,
 Android 1.1
 Android 1.5
 Google APIs

 I selected Android 1.5 and Apply, clicked OK. Application compiled
 nicely.

 If I go back to the same Preferences and select Android 1.1, Apply, I
 can no longer compile my application successfully.
 I get hundreds of the same error
 R cannot be resolved

 Then I try to open this project in another computer that I have not
 updated the SDK yet. I get the same error. Can anyone help to solve
 this? I'm trapped until the new SDK is out.
 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread hc

Hi,

I just tried that. But it does not work. After removing the file, I
still get the same error when I try to compile for 1.1 SDK.

Worse, when I try to compile for 1.5 SDK after that, I get the
following error but application compiled successfully
Conversion to Dalvik format failed with error 1



On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
wrote:
 considering that R.java is a generated file, try deleting it and see
 if the environment rebuilds according to your preference.

 On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

  I updated to 1.5 SDK pre, together with the ADT. I followed the
  instruction to select Android 1.5 as target by right clicking on the
  project, PreferencesAndroid. In this window there are 3 options,
  Android 1.1
  Android 1.5
  Google APIs

  I selected Android 1.5 and Apply, clicked OK. Application compiled
  nicely.

  If I go back to the same Preferences and select Android 1.1, Apply, I
  can no longer compile my application successfully.
  I get hundreds of the same error
  R cannot be resolved

  Then I try to open this project in another computer that I have not
  updated the SDK yet. I get the same error. Can anyone help to solve
  this? I'm trapped until the new SDK is out.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread hc

Do you have to uninstall before you reinstall it? I just updated my
ADT to 0.9 (the non-pre ADT), and update to 1.5_R1 SDK, but I still
get the same error if I try to compile for Android1.1

On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote:
 I saw the same error.
 so I reinstalled ADT and recheck build target Android1.1
 then I can see R.java which is generated at gen folder.

 try this.

 On Apr 27, 10:46 pm, hc honch...@gmail.com wrote:

  Hi,

  I just tried that. But it does not work. After removing the file, I
  still get the same error when I try to compile for 1.1 SDK.

  Worse, when I try to compile for1.5SDK after that, I get the
  following error but application compiled successfully
  Conversion to Dalvik format failed with error 1

  On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com
  wrote:

   considering thatR.javais a generated file, try deleting it and see
   if the environment rebuilds according to your preference.

   On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote:

I updated to1.5SDK pre, together with the ADT. I followed the
instruction to select Android1.5as target by right clicking on the
project, PreferencesAndroid. In this window there are 3 options,
Android 1.1
Android1.5
Google APIs

I selected Android1.5and Apply, clicked OK. Application compiled
nicely.

If I go back to the same Preferences and select Android 1.1, Apply, I
can no longer compile my application successfully.
I get hundreds of the same error
R cannot be resolved

Then I try to open this project in another computer that I have not
updated the SDK yet. I get the same error. Can anyone help to solve
this? I'm trapped until the new SDK is out.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread André Charles Legendre

I got similar problems with SDK on Linux. I solved it by adding tools
directory in PATH.

Regards

Andre

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---