Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
johnsto
Old
#1  
Member - OP
Thanks Meter 2
Posts: 49
Join Date: Jan 2009
Default [Q] ADT 8.0.0 doesn't like Java libraries?

Just updated to ADT 8.0.0 for Gingerbread goodness, and now it won't compile a project that compiled perfectly well on the previous version with the following error:

Code:
[2010-12-06 20:55:23 - Dex Loader] Unable to execute dex: null
[2010-12-06 20:55:23 - DummyAndroidProject] Conversion to Dalvik format failed: Unable to execute dex: null
I've narrowed this down to the fact that my Android project references a pure Java Eclipse project I have in the same workspace, which is a platform-neutral library I wrote myself. I confirmed by creating a blank Java project with an empty class, and a blank Android project that referenced the Java project as a library. This triggered the above dex error.

Has anyone else encountered this? I'm sure I'm not the only one who references external projects in this way?
 
Goonie2
Old
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Sep 2010
I got the exact same problem. Have you found a solution?
 
johnsto
Old
#3  
Member - OP
Thanks Meter 2
Posts: 49
Join Date: Jan 2009
Nothing yet. Going to report it as a bug and see of this behaviour is intentional. I certainly hope not.

As a workaround, manually including the library as a .jar should work...
 
johnsto
Old
#4  
Member - OP
Thanks Meter 2
Posts: 49
Join Date: Jan 2009
Ok, now got it logged as bug 13000 (!) right here.

My current workaround is to link the source of my Java project to my Android project (right click Android project, 'Build Path' > 'Link Source')
 
johnsto
Old
#5  
Member - OP
Thanks Meter 2
Posts: 49
Join Date: Jan 2009
FYI, Google have just pushed out AT 8.0.1 that fixes this bug. Hooray!
 
Post Reply+
Tags
adt, eclipse, gingerbread, java
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...