Dan Bornstein wrote:
> On Fri, Jul 10, 2009 at 1:00 PM, Mark Murphy<[email protected]> wrote:
>>> warning: Ignoring InnerClasses attribute for an anonymous inner class
>>> that doesn't come with an associated EnclosingMethod attribute. (This
>>> class was probably produced by a broken compiler.)
>> At least in some cases, that means you imported a precompiled JAR that
>> is not fully compatible, possibly due to references to missing platform
>> classes.
> 
> That message is only ever produced because of entirely local
> information about a class, and the trigger condition is exactly as
> stated: A .class file apparently represents (what in the Java
> programming language source was written as) an anonymous inner class;
> per spec such classes are supposed to have both InnerClasses and
> EnclosingMethod attributes, but dx observed it to have the former but
> not the latter. Look here for further details:
> <http://android.git.kernel.org/?p=platform/dalvik.git;a=blob;f=dx/src/com/android/dx/dex/cf/AttributeTranslator.java;h=dab15c9a0f24e4fa8067ef8d1140eff276c92cc3;hb=master>,
> starting around line 258.
> 
> The jar may reference classes that aren't included in the system as
> well, but that wouldn't trigger the message in question. Dx isn't a
> (cross-dex) linker, and so it never tries to resolve external
> references in the first place (nor does it take arguments that could
> possibly enable it to do so).

I apologize for my mistake -- I was thinking of a different dex error.

That being said, recompiling the code in question is the only way that I
know of to perhaps get past this problem. However, in this case, you may
be able to just rebuild the third-party JAR using your version of the
Java compiler, rather than have to integrate its sources into your own
project.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need help for your Android OSS project? http://wiki.andmob.org/hado

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

Reply via email to