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 <[email protected]
<mailto:[email protected]>> 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 <[email protected]
<mailto:[email protected]>> 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 <[email protected]
<mailto:[email protected]>> 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
<[email protected] <mailto:[email protected]>> wrote:
> > Does the console show any error?
>
> > On Mar 9, 3:04 pm, Donal Rafferty <[email protected]
<mailto:[email protected]>> 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
<[email protected] <mailto:[email protected]>>
> > 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
<[email protected] <mailto:[email protected]>
> > >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, [email protected]
<mailto:[email protected]> пишет:
>
> > > >> 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
> > [email protected]
<mailto:[email protected]>
> > > >> To unsubscribe from this group, send email to
> > > >> [email protected]
<mailto:android-developers%[email protected]>
> > > >> 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
[email protected]
<mailto:[email protected]>
> > To unsubscribe from this group, send email to
> > [email protected]
<mailto:android-developers%[email protected]>
> > 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
[email protected]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]>
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en