[android-developers] Re: ADT r14 - Conversion to Dalvik format failed with error 1

2011-11-14 Thread DevByStarlight
Omg, thanks!

I did the upgrade and, after a bunch of other minor fixes I still ran
into the Dalvik problem.

My "fix" was a bit different. And not quite sure what actually made it
work.

- I made the changes suggested in this thread - namely touching up the
build path. Then "clean all" and built .. closed Eclipse, clean,
build ... but still didn't not fixed. Although the extra referenced
library projects in Package Explorer went away.

S ..
- I turned off build automatically
- Closed each of the projects in Eclipse (application plus the
separate library projects)
- Closed Eclipse
- Deleted each of the {Project}/bin directories from my local system
manually (ie, Windows Explorer)
- Reopened Eclipse
- Opened each project individually starting with the lowest library up
to the application building each project as I went along ... As
Eclipse opened each I could see it reconstruct the projects contents
in Package Explorer as it detected the missing ./bin directory
- By the time I opened and built the main application project it all
seemed to link and work okay .. ie, no more Dalvik error.

Side note: I looked in the ./bin directories before deleting and there
were sub-directories {classes, res} but they were otherwise empty. So
I am guessing that really had no effect. And, more likely, it was the
fact Eclipse did the refresh on the Project that made the real
difference.

(Maybe a subtle difference between an "F5 refresh" and "detecting a
change on the file system" refresh?)

Side note #2 (other side) ... using Perforce for source control
management. I wouldn't be at all surprised it that might have marked
something read-only or somehow interfered with Eclipse detecting the
change.

At any rate, perhaps the above helps shed some light on something for
somebody :)



On Oct 21, 1:09 pm, Xavier Ducrohet  wrote:
> Forgot to add the link to the migration, but looking at it I can't find it :\
>
> Will put official information up soon.
>
>
>
>
>
>
>
>
>
> On Fri, Oct 21, 2011 at 2:08 PM, Xavier Ducrohet  wrote:
> > hey,
>
> > we have a migration note at the end of but obviously we should have
> > put this more forward.
>
> > A great explanation of the issue and how to fix it is here:
> >http://android.foxykeep.com/dev/fix-the-conversion-to-dalvik-format-f...
>
> > On Fri, Oct 21, 2011 at 12:00 PM, Ben H  wrote:
> >> since updating ADT to r14, i've been plagued by the bug described here
>
> >>http://code.google.com/p/android/issues/detail?id=20398
>
> >> and here
>
> >>http://stackoverflow.com/questions/7823312/problems-building-with-adt...
>
> >> i was surprised that i couldn't find a thread about this bug in this
> >> group. i'm hoping someone here has some insight. i've tried all the
> >> solutions offered so far, and none of them work for me.
>
> >> my comment from the bug report: i'm having this problem too. my app
> >> only references one library - my LVL library. i have tried removing
> >> the reference, cleaning .classpath, and .project, and removing
> >> references to source folders. i've cleaned the project, opened and
> >> closed it, and waved a dead chicken over my keyboard. nothing has
> >> worked. please help!
>
> >> my console output with stack trace:
>
> >> [2011-10-20 23:32:04 - MyApp] Dx UNEXPECTED TOP-LEVEL
> >> EXCEPTION:java.lang.IllegalArgumentException:alreadyadded: Lcom/
> >> android/vending/licensing/AESObfuscator;
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
> >> 123)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.dex.file.DexFile.add(DexFile.java:163)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.command.dexer.Main.processClass(Main.java:486)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.command.dexer.Main.access$400(Main.java:67)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at 
> >> com.android.dx.command.dexer.Main
> >> $1.processFileBytes(Main.java:394)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:
> >> 245)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
> >> 131)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
> >> 109)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.command.dexer.Main.processOne(Main.java:418)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> com.android.dx.command.dexer.Main.run(Main.java:206)
> >> [2011-10-20 23:32:04 - MyApp] Dx        at
> >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> [2011-10-20 23:32:04 - MyA

[android-developers] Re: ADT r14 - Conversion to Dalvik format failed with error 1

2011-10-21 Thread Ben H

That's a major problem for me. I need to release an update to my
Android app right now, and I'm stuck. I can't use r14, and I can't go
back to r12. Is there a place where I can download the platform
packages directly?

On Oct 21, 2:28 pm, Xavier Ducrohet  wrote:
> R14 use a different repository file due to a schema change.
>
>
>
>
>
> On Fri, Oct 21, 2011 at 2:24 PM, Ben H  wrote:
> > thanks, xavier, but i tried that and it didn't work for me.
>
> > i'm trying to reinstall the entire sdk because of this problem, but am now
> > encountering problems downloading the platform packages. they seem to be
> > missing from the android repository. shouldn't there be more listed here
> > than just the sdk tools?
> >http://dl.google.com/android/repository/repository.xml
>
> > --
> > 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