[android-developers] Re: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-04-19 Thread draf...@gmail.com
I done this and the output simply says Refreshing resource folders
and thats it, there is nothing else.

None of these other workarounds work for me.

On Mar 15, 10:48 pm, Xavier Ducrohet x...@android.com wrote:
 Can you enable verbose build output (in the Eclipse preferences under
 Android  Build), force a compile and see what's dumped in the console
 view?



 On Tue, Mar 15, 2011 at 6:46 AM, Donal Rafferty draf...@gmail.com wrote:
  Bit of an update on this, I'm still stuck on it and have noticed some
  curious issues.

  My project was started back in 1.5 SDK so my resources only had the one
  drawables folder so I created the three -mdpi,-ldpi, -hdpi folders and put
  my drawables in -mdpi.

  I was hoping this would be it but it wasn't R.java still wont regenerate.

  Is there anything I need in my manifest for the new folders or anything that
  needs to be changed like that for the new project setup?

  Also I've noticed if I create a new project and copy over just my Resources
  and build the R.java file generates fine and I can then copy it back into my
  proper project and it works by just matching up the package.
  However if I create a new project and add the resources and then also my
  source files then R.java wont generate and neither will any of my .aidl
  files.

  Which seems really strange to me, has anyone got any ideas taking into
  account the new info as to what could be happening?

  On Fri, Mar 11, 2011 at 4:19 AM, 曾少彬 forever_ho...@hotmail.com wrote:

  Hi,

  I met a similar situation, and it was fixed by removing import
  android.R;, though I really don't know why android.R was imported.

  With android.R, java files won't be able to read local resources
  properly.  I'm not sure if you're meeting the same thing..

  Best Regards!

   Date: Thu, 10 Mar 2011 20:00:13 -0800
   Subject: [android-developers] Re: Eclipse wont regenerate files since
   downloading the 2.3 SDK
   From: zvasv...@gmail.com
   To: android-developers@googlegroups.com

   Yes, this is exactly what I have to do. I don't think it's anything
   on our side of things, but who knows.

   On Mar 11, 9:51 am, Ed Burnette ed.burne...@gmail.com wrote:
Sometimes I have to edit something innocuous in the xml file and in
a .java file and save it (with build automatically set) to get a clean
build. Project  Clean usually works but when it doesn't, the modify-
and-save trick usually works. Changing the Android build target
temporarily might jostle something loose too. I really wish all the
little oddities like this could be ironed out but I have no time to
try and fix it myself.

   --
   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

  --
  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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. 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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-31 Thread ericharlow
I followed the below instructions that were posted on this issue and was 
successful in cleaning my project!

Comment 3 http://code.google.com/p/android/issues/detail?id=15209#c3 by 
rui.mtd@gmail.com http://code.google.com/u/@WRRWRVVXDhhAXgh5/, Mar 7, 
2011 

Ok, after one and a half hour, I have a solution. For every project:

1. Delete project from Eclipse;
2. Delete all project generated and configuration files (bin, gen, .classpath, 
.project, default.properties);
3. Go to Eclipse and CREATE a new Android Project (do not import an existing 
one) chosing your original source files;
4. Adjust all setting (JRE, libraries, linked files, aspects, etc...)
5. Clean

following something similar to this I am now able to clean my projects. note 
I moved the original folders not delete everything and only added back src 
and res folders after I built a new android project. After I replaced the 
new src and res folders with the previous folders I applied F5 and cleaned 
the project and no error any more! best of luck!

-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-15 Thread Donal Rafferty
Bit of an update on this, I'm still stuck on it and have noticed some
curious issues.

My project was started back in 1.5 SDK so my resources only had the one
drawables folder so I created the three -mdpi,-ldpi, -hdpi folders and put
my drawables in -mdpi.

I was hoping this would be it but it wasn't R.java still wont regenerate.

Is there anything I need in my manifest for the new folders or anything that
needs to be changed like that for the new project setup?

Also I've noticed if I create a new project and copy over just my Resources
and build the R.java file generates fine and I can then copy it back into my
proper project and it works by just matching up the package.
However if I create a new project and add the resources and then also my
source files then R.java wont generate and neither will any of my .aidl
files.

Which seems really strange to me, has anyone got any ideas taking into
account the new info as to what could be happening?

On Fri, Mar 11, 2011 at 4:19 AM, 曾少彬 forever_ho...@hotmail.com wrote:

  Hi,


 I met a similar situation, and it was fixed by removing import
 android.R;, though I really don't know why android.R was imported.

 With android.R, java files won't be able to read local resources
 properly.  I'm not sure if you're meeting the same thing..

 Best Regards!



  Date: Thu, 10 Mar 2011 20:00:13 -0800
  Subject: [android-developers] Re: Eclipse wont regenerate files since
 downloading the 2.3 SDK
  From: zvasv...@gmail.com
  To: android-developers@googlegroups.com

 
  Yes, this is exactly what I have to do. I don't think it's anything
  on our side of things, but who knows.
 
  On Mar 11, 9:51 am, Ed Burnette ed.burne...@gmail.com wrote:
   Sometimes I have to edit something innocuous in the xml file and in
   a .java file and save it (with build automatically set) to get a clean
   build. Project  Clean usually works but when it doesn't, the modify-
   and-save trick usually works. Changing the Android build target
   temporarily might jostle something loose too. I really wish all the
   little oddities like this could be ironed out but I have no time to
   try and fix it myself.
 
  --
  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


-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-15 Thread Xavier Ducrohet
Can you enable verbose build output (in the Eclipse preferences under
Android  Build), force a compile and see what's dumped in the console
view?

On Tue, Mar 15, 2011 at 6:46 AM, Donal Rafferty draf...@gmail.com wrote:
 Bit of an update on this, I'm still stuck on it and have noticed some
 curious issues.

 My project was started back in 1.5 SDK so my resources only had the one
 drawables folder so I created the three -mdpi,-ldpi, -hdpi folders and put
 my drawables in -mdpi.

 I was hoping this would be it but it wasn't R.java still wont regenerate.

 Is there anything I need in my manifest for the new folders or anything that
 needs to be changed like that for the new project setup?

 Also I've noticed if I create a new project and copy over just my Resources
 and build the R.java file generates fine and I can then copy it back into my
 proper project and it works by just matching up the package.
 However if I create a new project and add the resources and then also my
 source files then R.java wont generate and neither will any of my .aidl
 files.

 Which seems really strange to me, has anyone got any ideas taking into
 account the new info as to what could be happening?

 On Fri, Mar 11, 2011 at 4:19 AM, 曾少彬 forever_ho...@hotmail.com wrote:

 Hi,


 I met a similar situation, and it was fixed by removing import
 android.R;, though I really don't know why android.R was imported.

 With android.R, java files won't be able to read local resources
 properly.  I'm not sure if you're meeting the same thing..

 Best Regards!



  Date: Thu, 10 Mar 2011 20:00:13 -0800
  Subject: [android-developers] Re: Eclipse wont regenerate files since
  downloading the 2.3 SDK
  From: zvasv...@gmail.com
  To: android-developers@googlegroups.com
 
  Yes, this is exactly what I have to do. I don't think it's anything
  on our side of things, but who knows.
 
  On Mar 11, 9:51 am, Ed Burnette ed.burne...@gmail.com wrote:
   Sometimes I have to edit something innocuous in the xml file and in
   a .java file and save it (with build automatically set) to get a clean
   build. Project  Clean usually works but when it doesn't, the modify-
   and-save trick usually works. Changing the Android build target
   temporarily might jostle something loose too. I really wish all the
   little oddities like this could be ironed out but I have no time to
   try and fix it myself.
 
  --
  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

 --
 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



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-11 Thread Pent
 Sometimes I have to edit something innocuous in the xml file and in
 a .java file and save it (with build automatically set) to get a clean
 build. Project  Clean usually works but when it doesn't, the modify-
 and-save trick usually works. Changing the Android build target
 temporarily might jostle something loose too. I really wish all the
 little oddities like this could be ironed out but I have no time to
 try and fix it myself.

I get the problem seemingly any time I add a new resource. On the
first install
the resource IDs are mixed up (i.e many strings show in the wrong
UI object). Often there's a crash.

My reliable fix is just to add a space to any resource file and
rebuild.

Pent

-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-11 Thread Doug
If anyone is still having problem with this, please see a bug I filed with 
Google and star it if it applies to you.

http://code.google.com/p/android/issues/detail?id=15209

Doug

-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-11 Thread dario
For what it's worth, another workaround (and another hint to the
underlying problem) is to add a library to the Java Build Path under
Project Properties (e.g. add junit) save project, then remove it.

-Dario

On Mar 9, 7:56 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
  But if I click on the project and press F5 to refresh the error goes
  away and the project builds fine and R.java is present.

 I tried this yesterday, it didn't work.  It's definetely a Resource ID
 problem -- not sure what triggers it -- and it's a lot worse with ADT
 10 than before.  I just clean/rebuild a bunch of times and the error
 goes away eventually.

-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-11 Thread 曾少彬

Hi,
 

I met a similar situation, and it was fixed by removing import android.R;, 
though I really don't know why android.R was imported.

With android.R, java files won't be able to read local resources properly.  
I'm not sure if you're meeting the same thing..

Best Regards!


 
 Date: Thu, 10 Mar 2011 20:00:13 -0800
 Subject: [android-developers] Re: Eclipse wont regenerate files since 
 downloading the 2.3 SDK
 From: zvasv...@gmail.com
 To: android-developers@googlegroups.com
 
 Yes, this is exactly what I have to do. I don't think it's anything
 on our side of things, but who knows.
 
 On Mar 11, 9:51 am, Ed Burnette ed.burne...@gmail.com wrote:
  Sometimes I have to edit something innocuous in the xml file and in
  a .java file and save it (with build automatically set) to get a clean
  build. Project  Clean usually works but when it doesn't, the modify-
  and-save trick usually works. Changing the Android build target
  temporarily might jostle something loose too. I really wish all the
  little oddities like this could be ironed out but I have no time to
  try and fix it myself.
 
 -- 
 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

Re: [android-developers] Re: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-10 Thread Donal Rafferty
Yep, tried all those and nothing happens when I try to use the fix project
propeties.

On Wed, Mar 9, 2011 at 3:13 PM, gary lucas lucas.g...@gmail.com wrote:

 Something similar to this happened to me.

 Have you tried using the 'android' -- Fix this application from the
 eclipse project manager view?

 Also, I had R.Id.buttonX returning a TextEdit for awhile... I solved
 that by deleting the elements from the UI file and then saving and re-
 adding...

 I'm assuming you've cleaned, closed and reopened eclipse and all the
 usual suspects.



 On Mar 9, 6:34 am, Donal Rafferty draf...@gmail.com wrote:
  No, the console is blank and there are no problems reported in the
 problems
  tab
 
 
 
 
 
 
 
  On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier clemplant...@gmail.com
 wrote:
   Does the console show any error?
 
   On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com wrote:
Just to add to this I have now also deleted every single XML file
 under
   my
res folder and the R.java file still did not rebuild, what is going
 on!??
 
On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty draf...@gmail.com
   wrote:
 Clean is of no benefit to me in my case I'm afraid, does nothing.
 Its
   as if
 there are errors in the XML so the R file cant generate but Eclipse
   doesn't
 show up any errors
 
 On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev 
 kmans...@gmail.com
   wrote:
 
 I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10),
 Eclipse
   3.6.2.
 
 For now, I just clean my project when this happens (usually my
 code
   blows
 up in the main activity's setContent because of shifting resource
   IDs).
 
 -- Kostya
 
 09.03.2011 15:52, draf...@gmail.com пишет:
 
  I have recently downloaded the add on to Eclipse for the 2.3 SDK.
 My
 minSDK is 2.1update-1.
 
 Previously I only had up to the 2.2 SDK and I could change my XML
 files and drawables without hassle and the generated R.java file
   would
 regenerate properly. The same if I changed my aidl files, the
 stubs
 would regenerate properly.
 
 However since the upgrade to 2.3 SDK I cant change or add any XML
 files or drawables or aidl files as they wont regenerate causing
 all
 sorts of issues.
 
 I have googled and tried all sorts of suggestions such as:
 
 Using clean.
 Deleting the gen files and rebuilding (Just leaves an empty Gen
 folder)
 Using non automatic build
 Using the new Formating parameter in Strings.xml
 
 However none of them work.
 
 Is there something I've missed that I have to do to get the
 regeneration working for 2.3 SDK?
 
 --
 Kostya Vasilyev --http://kmansoft.wordpress.com
 
 --
 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

 --
 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

Re: [android-developers] Re: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-10 Thread Donal Rafferty
Ok, I've tried everything and this is eating up far too much development
time, Is there anyone with a proper solution to this? I have SDK 2.3 and the
latest ADT on 3 different machines now and R.java wont rengenrate on any of
them so someone else has to have the exact same problem and a solution?

If not is there a way to go back to the 2.2 SDK and previous ADT?

On Thu, Mar 10, 2011 at 10:35 AM, Donal Rafferty draf...@gmail.com wrote:

 Yep, tried all those and nothing happens when I try to use the fix project
 propeties.


 On Wed, Mar 9, 2011 at 3:13 PM, gary lucas lucas.g...@gmail.com wrote:

 Something similar to this happened to me.

 Have you tried using the 'android' -- Fix this application from the
 eclipse project manager view?

 Also, I had R.Id.buttonX returning a TextEdit for awhile... I solved
 that by deleting the elements from the UI file and then saving and re-
 adding...

 I'm assuming you've cleaned, closed and reopened eclipse and all the
 usual suspects.



 On Mar 9, 6:34 am, Donal Rafferty draf...@gmail.com wrote:
  No, the console is blank and there are no problems reported in the
 problems
  tab
 
 
 
 
 
 
 
  On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier clemplant...@gmail.com
 wrote:
   Does the console show any error?
 
   On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com wrote:
Just to add to this I have now also deleted every single XML file
 under
   my
res folder and the R.java file still did not rebuild, what is going
 on!??
 
On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty draf...@gmail.com
   wrote:
 Clean is of no benefit to me in my case I'm afraid, does nothing.
 Its
   as if
 there are errors in the XML so the R file cant generate but
 Eclipse
   doesn't
 show up any errors
 
 On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev 
 kmans...@gmail.com
   wrote:
 
 I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10),
 Eclipse
   3.6.2.
 
 For now, I just clean my project when this happens (usually my
 code
   blows
 up in the main activity's setContent because of shifting resource
   IDs).
 
 -- Kostya
 
 09.03.2011 15:52, draf...@gmail.com пишет:
 
  I have recently downloaded the add on to Eclipse for the 2.3
 SDK. My
 minSDK is 2.1update-1.
 
 Previously I only had up to the 2.2 SDK and I could change my
 XML
 files and drawables without hassle and the generated R.java file
   would
 regenerate properly. The same if I changed my aidl files, the
 stubs
 would regenerate properly.
 
 However since the upgrade to 2.3 SDK I cant change or add any
 XML
 files or drawables or aidl files as they wont regenerate causing
 all
 sorts of issues.
 
 I have googled and tried all sorts of suggestions such as:
 
 Using clean.
 Deleting the gen files and rebuilding (Just leaves an empty Gen
 folder)
 Using non automatic build
 Using the new Formating parameter in Strings.xml
 
 However none of them work.
 
 Is there something I've missed that I have to do to get the
 regeneration working for 2.3 SDK?
 
 --
 Kostya Vasilyev --http://kmansoft.wordpress.com
 
 --
 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

 --
 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

Re: [android-developers] Re: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-10 Thread Kostya Vasilyev
Are you also seeing Project cannot be built until path dependencies are 
fixed (or something like that) in the Problems view? Is the gen 
folder missing entirely?


When this happened to me, I was able to fix it by repeatedly doing 
Refresh in the Package Explorer view (Right mouse - Refresh, or F5) and 
Project - Clean. After two or three cycles it finally worked.


I'm using SDK 2.2, though - still with Tools 10, and Eclipse 3.6.2

-- Kostya

10.03.2011 15:16, Donal Rafferty пишет:
Ok, I've tried everything and this is eating up far too much 
development time, Is there anyone with a proper solution to this? I 
have SDK 2.3 and the latest ADT on 3 different machines now and R.java 
wont rengenrate on any of them so someone else has to have the exact 
same problem and a solution?


If not is there a way to go back to the 2.2 SDK and previous ADT?

On Thu, Mar 10, 2011 at 10:35 AM, Donal Rafferty draf...@gmail.com 
mailto:draf...@gmail.com wrote:


Yep, tried all those and nothing happens when I try to use the fix
project propeties.


On Wed, Mar 9, 2011 at 3:13 PM, gary lucas lucas.g...@gmail.com
mailto:lucas.g...@gmail.com wrote:

Something similar to this happened to me.

Have you tried using the 'android' -- Fix this application
from the
eclipse project manager view?

Also, I had R.Id.buttonX returning a TextEdit for awhile... I
solved
that by deleting the elements from the UI file and then saving
and re-
adding...

I'm assuming you've cleaned, closed and reopened eclipse and
all the
usual suspects.



On Mar 9, 6:34 am, Donal Rafferty draf...@gmail.com
mailto:draf...@gmail.com wrote:
 No, the console is blank and there are no problems reported
in the problems
 tab







 On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier
clemplant...@gmail.com mailto:clemplant...@gmail.com wrote:
  Does the console show any error?

  On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com
mailto:draf...@gmail.com wrote:
   Just to add to this I have now also deleted every single
XML file under
  my
   res folder and the R.java file still did not rebuild,
what is going on!??

   On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty
draf...@gmail.com mailto:draf...@gmail.com
  wrote:
Clean is of no benefit to me in my case I'm afraid,
does nothing. Its
  as if
there are errors in the XML so the R file cant
generate but Eclipse
  doesn't
show up any errors

On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev
kmans...@gmail.com mailto:kmans...@gmail.com
  wrote:

I'm occasionally seeing this with ADT 10, SDK 2.2
(API 10), Eclipse
  3.6.2.

For now, I just clean my project when this happens
(usually my code
  blows
up in the main activity's setContent because of
shifting resource
  IDs).

-- Kostya

09.03.2011 15:52, draf...@gmail.com
mailto:draf...@gmail.com пишет:

 I have recently downloaded the add on to Eclipse for
the 2.3 SDK. My
minSDK is 2.1update-1.

Previously I only had up to the 2.2 SDK and I could
change my XML
files and drawables without hassle and the generated
R.java file
  would
regenerate properly. The same if I changed my aidl
files, the stubs
would regenerate properly.

However since the upgrade to 2.3 SDK I cant change
or add any XML
files or drawables or aidl files as they wont
regenerate causing all
sorts of issues.

I have googled and tried all sorts of suggestions
such as:

Using clean.
Deleting the gen files and rebuilding (Just leaves
an empty Gen
folder)
Using non automatic build
Using the new Formating parameter in Strings.xml

However none of them work.

Is there something I've missed that I have to do to
get the
regeneration working for 2.3 SDK?

--
Kostya Vasilyev --http://kmansoft.wordpress.com

--
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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to

[android-developers] Re: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-10 Thread Ed Burnette
Sometimes I have to edit something innocuous in the xml file and in
a .java file and save it (with build automatically set) to get a clean
build. Project  Clean usually works but when it doesn't, the modify-
and-save trick usually works. Changing the Android build target
temporarily might jostle something loose too. I really wish all the
little oddities like this could be ironed out but I have no time to
try and fix it myself.

-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-10 Thread Zsolt Vasvari
Yes, this is exactly what I have to do.  I don't think it's anything
on our side of things, but who knows.

On Mar 11, 9:51 am, Ed Burnette ed.burne...@gmail.com wrote:
 Sometimes I have to edit something innocuous in the xml file and in
 a .java file and save it (with build automatically set) to get a clean
 build. Project  Clean usually works but when it doesn't, the modify-
 and-save trick usually works. Changing the Android build target
 temporarily might jostle something loose too. I really wish all the
 little oddities like this could be ironed out but I have no time to
 try and fix it myself.

-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread C. Plantier
Does the console show any error?

On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com wrote:
 Just to add to this I have now also deleted every single XML file under my
 res folder and the R.java file still did not rebuild, what is going on!??







 On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty draf...@gmail.com wrote:
  Clean is of no benefit to me in my case I'm afraid, does nothing. Its as if
  there are errors in the XML so the R file cant generate but Eclipse doesn't
  show up any errors

  On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev kmans...@gmail.comwrote:

  I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse 3.6.2.

  For now, I just clean my project when this happens (usually my code blows
  up in the main activity's setContent because of shifting resource IDs).

  -- Kostya

  09.03.2011 15:52, draf...@gmail.com пишет:

   I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
  minSDK is 2.1update-1.

  Previously I only had up to the 2.2 SDK and I could change my XML
  files and drawables without hassle and the generated R.java file would
  regenerate properly. The same if I changed my aidl files, the stubs
  would regenerate properly.

  However since the upgrade to 2.3 SDK I cant change or add any XML
  files or drawables or aidl files as they wont regenerate causing all
  sorts of issues.

  I have googled and tried all sorts of suggestions such as:

  Using clean.
  Deleting the gen files and rebuilding (Just leaves an empty Gen
  folder)
  Using non automatic build
  Using the new Formating parameter in Strings.xml

  However none of them work.

  Is there something I've missed that I have to do to get the
  regeneration working for 2.3 SDK?

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

  --
  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


Re: [android-developers] Re: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Donal Rafferty
No, the console is blank and there are no problems reported in the problems
tab

On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier clemplant...@gmail.com wrote:

 Does the console show any error?

 On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com wrote:
  Just to add to this I have now also deleted every single XML file under
 my
  res folder and the R.java file still did not rebuild, what is going on!??
 
 
 
 
 
 
 
  On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty draf...@gmail.com
 wrote:
   Clean is of no benefit to me in my case I'm afraid, does nothing. Its
 as if
   there are errors in the XML so the R file cant generate but Eclipse
 doesn't
   show up any errors
 
   On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:
 
   I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
 3.6.2.
 
   For now, I just clean my project when this happens (usually my code
 blows
   up in the main activity's setContent because of shifting resource
 IDs).
 
   -- Kostya
 
   09.03.2011 15:52, draf...@gmail.com пишет:
 
I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
   minSDK is 2.1update-1.
 
   Previously I only had up to the 2.2 SDK and I could change my XML
   files and drawables without hassle and the generated R.java file
 would
   regenerate properly. The same if I changed my aidl files, the stubs
   would regenerate properly.
 
   However since the upgrade to 2.3 SDK I cant change or add any XML
   files or drawables or aidl files as they wont regenerate causing all
   sorts of issues.
 
   I have googled and tried all sorts of suggestions such as:
 
   Using clean.
   Deleting the gen files and rebuilding (Just leaves an empty Gen
   folder)
   Using non automatic build
   Using the new Formating parameter in Strings.xml
 
   However none of them work.
 
   Is there something I've missed that I have to do to get the
   regeneration working for 2.3 SDK?
 
   --
   Kostya Vasilyev --http://kmansoft.wordpress.com
 
   --
   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


-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Aitor Mendaza Ormaza
This once happened to me once. I had an error in the AndroidManifest.xml
file, but eclipse didn't show the error.
Once fixed, everything went back to work again :)

On Wed, Mar 9, 2011 at 3:34 PM, Donal Rafferty draf...@gmail.com wrote:

 No, the console is blank and there are no problems reported in the problems
 tab


 On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier clemplant...@gmail.comwrote:

 Does the console show any error?

 On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com wrote:
  Just to add to this I have now also deleted every single XML file under
 my
  res folder and the R.java file still did not rebuild, what is going
 on!??
 
 
 
 
 
 
 
  On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty draf...@gmail.com
 wrote:
   Clean is of no benefit to me in my case I'm afraid, does nothing. Its
 as if
   there are errors in the XML so the R file cant generate but Eclipse
 doesn't
   show up any errors
 
   On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:
 
   I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
 3.6.2.
 
   For now, I just clean my project when this happens (usually my code
 blows
   up in the main activity's setContent because of shifting resource
 IDs).
 
   -- Kostya
 
   09.03.2011 15:52, draf...@gmail.com пишет:
 
I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
   minSDK is 2.1update-1.
 
   Previously I only had up to the 2.2 SDK and I could change my XML
   files and drawables without hassle and the generated R.java file
 would
   regenerate properly. The same if I changed my aidl files, the stubs
   would regenerate properly.
 
   However since the upgrade to 2.3 SDK I cant change or add any XML
   files or drawables or aidl files as they wont regenerate causing all
   sorts of issues.
 
   I have googled and tried all sorts of suggestions such as:
 
   Using clean.
   Deleting the gen files and rebuilding (Just leaves an empty Gen
   folder)
   Using non automatic build
   Using the new Formating parameter in Strings.xml
 
   However none of them work.
 
   Is there something I've missed that I have to do to get the
   regeneration working for 2.3 SDK?
 
   --
   Kostya Vasilyev --http://kmansoft.wordpress.com
 
   --
   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


  --
 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




-- 
---
http://aitorTheRed.blogspot.com
http://www.last.fm/user/aitorTheRed/

-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Donal Rafferty
I was hoping it would be something like that but its not, regeneration works
fine on 2.2 SDK + a previous ADT but fails on 2.3 SDK + ADT 10, is there
something in the Manifest I have to change for 2.3 SDK?

On Wed, Mar 9, 2011 at 3:10 PM, Aitor Mendaza Ormaza
aitorthe...@gmail.comwrote:

 This once happened to me once. I had an error in the AndroidManifest.xml
 file, but eclipse didn't show the error.
 Once fixed, everything went back to work again :)

 On Wed, Mar 9, 2011 at 3:34 PM, Donal Rafferty draf...@gmail.com wrote:

 No, the console is blank and there are no problems reported in the
 problems tab


 On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier clemplant...@gmail.comwrote:

 Does the console show any error?

 On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com wrote:
  Just to add to this I have now also deleted every single XML file under
 my
  res folder and the R.java file still did not rebuild, what is going
 on!??
 
 
 
 
 
 
 
  On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty draf...@gmail.com
 wrote:
   Clean is of no benefit to me in my case I'm afraid, does nothing. Its
 as if
   there are errors in the XML so the R file cant generate but Eclipse
 doesn't
   show up any errors
 
   On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:
 
   I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
 3.6.2.
 
   For now, I just clean my project when this happens (usually my code
 blows
   up in the main activity's setContent because of shifting resource
 IDs).
 
   -- Kostya
 
   09.03.2011 15:52, draf...@gmail.com пишет:
 
I have recently downloaded the add on to Eclipse for the 2.3 SDK.
 My
   minSDK is 2.1update-1.
 
   Previously I only had up to the 2.2 SDK and I could change my XML
   files and drawables without hassle and the generated R.java file
 would
   regenerate properly. The same if I changed my aidl files, the stubs
   would regenerate properly.
 
   However since the upgrade to 2.3 SDK I cant change or add any XML
   files or drawables or aidl files as they wont regenerate causing
 all
   sorts of issues.
 
   I have googled and tried all sorts of suggestions such as:
 
   Using clean.
   Deleting the gen files and rebuilding (Just leaves an empty Gen
   folder)
   Using non automatic build
   Using the new Formating parameter in Strings.xml
 
   However none of them work.
 
   Is there something I've missed that I have to do to get the
   regeneration working for 2.3 SDK?
 
   --
   Kostya Vasilyev --http://kmansoft.wordpress.com
 
   --
   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


  --
 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




 --
 ---
 http://aitorTheRed.blogspot.com
 http://www.last.fm/user/aitorTheRed/

 --
 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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread ericharlow
I am using the 1.6 SDK + ADT 10 just downloaded it yesterday.
I have the same issue with no generated R.java file after cleaning the
project.
But if I click on the project and press F5 to refresh the error goes
away and the project builds fine and R.java is present.
Is this an error in ADT 10?

On Mar 9, 8:20 am, Donal Rafferty draf...@gmail.com wrote:
 I was hoping it would be something like that but its not, regeneration works
 fine on 2.2 SDK + a previous ADT but fails on 2.3 SDK + ADT 10, is there
 something in the Manifest I have to change for 2.3 SDK?

 On Wed, Mar 9, 2011 at 3:10 PM, Aitor Mendaza Ormaza
 aitorthe...@gmail.comwrote:

  This once happened to me once. I had an error in the AndroidManifest.xml
  file, but eclipse didn't show the error.
  Once fixed, everything went back to work again :)

  On Wed, Mar 9, 2011 at 3:34 PM, Donal Rafferty draf...@gmail.com wrote:

  No, the console is blank and there are no problems reported in the
  problems tab

  On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier clemplant...@gmail.comwrote:

  Does the console show any error?

  On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com wrote:
   Just to add to this I have now also deleted every single XML file under
  my
   res folder and the R.java file still did not rebuild, what is going
  on!??

   On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty draf...@gmail.com
  wrote:
Clean is of no benefit to me in my case I'm afraid, does nothing. Its
  as if
there are errors in the XML so the R file cant generate but Eclipse
  doesn't
show up any errors

On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev kmans...@gmail.com
  wrote:

I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
  3.6.2.

For now, I just clean my project when this happens (usually my code
  blows
up in the main activity's setContent because of shifting resource
  IDs).

-- Kostya

09.03.2011 15:52, draf...@gmail.com пишет:

 I have recently downloaded the add on to Eclipse for the 2.3 SDK.
  My
minSDK is 2.1update-1.

Previously I only had up to the 2.2 SDK and I could change my XML
files and drawables without hassle and the generated R.java file
  would
regenerate properly. The same if I changed my aidl files, the stubs
would regenerate properly.

However since the upgrade to 2.3 SDK I cant change or add any XML
files or drawables or aidl files as they wont regenerate causing
  all
sorts of issues.

I have googled and tried all sorts of suggestions such as:

Using clean.
Deleting the gen files and rebuilding (Just leaves an empty Gen
folder)
Using non automatic build
Using the new Formating parameter in Strings.xml

However none of them work.

Is there something I've missed that I have to do to get the
regeneration working for 2.3 SDK?

--
Kostya Vasilyev --http://kmansoft.wordpress.com

--
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

   --
  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

  --
  ---
 http://aitorTheRed.blogspot.com
 http://www.last.fm/user/aitorTheRed/

  --
  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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Zsolt Vasvari
 But if I click on the project and press F5 to refresh the error goes
 away and the project builds fine and R.java is present.

I tried this yesterday, it didn't work.  It's definetely a Resource ID
problem -- not sure what triggers it -- and it's a lot worse with ADT
10 than before.  I just clean/rebuild a bunch of times and the error
goes away eventually.

-- 
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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread gary lucas
Something similar to this happened to me.

Have you tried using the 'android' -- Fix this application from the
eclipse project manager view?

Also, I had R.Id.buttonX returning a TextEdit for awhile... I solved
that by deleting the elements from the UI file and then saving and re-
adding...

I'm assuming you've cleaned, closed and reopened eclipse and all the
usual suspects.



On Mar 9, 6:34 am, Donal Rafferty draf...@gmail.com wrote:
 No, the console is blank and there are no problems reported in the problems
 tab







 On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier clemplant...@gmail.com wrote:
  Does the console show any error?

  On Mar 9, 3:04 pm, Donal Rafferty draf...@gmail.com wrote:
   Just to add to this I have now also deleted every single XML file under
  my
   res folder and the R.java file still did not rebuild, what is going on!??

   On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty draf...@gmail.com
  wrote:
Clean is of no benefit to me in my case I'm afraid, does nothing. Its
  as if
there are errors in the XML so the R file cant generate but Eclipse
  doesn't
show up any errors

On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev kmans...@gmail.com
  wrote:

I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
  3.6.2.

For now, I just clean my project when this happens (usually my code
  blows
up in the main activity's setContent because of shifting resource
  IDs).

-- Kostya

09.03.2011 15:52, draf...@gmail.com пишет:

 I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
minSDK is 2.1update-1.

Previously I only had up to the 2.2 SDK and I could change my XML
files and drawables without hassle and the generated R.java file
  would
regenerate properly. The same if I changed my aidl files, the stubs
would regenerate properly.

However since the upgrade to 2.3 SDK I cant change or add any XML
files or drawables or aidl files as they wont regenerate causing all
sorts of issues.

I have googled and tried all sorts of suggestions such as:

Using clean.
Deleting the gen files and rebuilding (Just leaves an empty Gen
folder)
Using non automatic build
Using the new Formating parameter in Strings.xml

However none of them work.

Is there something I've missed that I have to do to get the
regeneration working for 2.3 SDK?

--
Kostya Vasilyev --http://kmansoft.wordpress.com

--
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

-- 
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