[android-developers] How to disable certain dex warning in Gradle

2014-11-26 Thread Leith Bade
I have a bunch of dex warning generated by an Apache Commons dependency 
like this:
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.beanutils.BeanMap$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any -target type options. The consequence of 
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

I would like to set an option in my build.gradle file to disable them.

How do I do this?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to disable certain dex warning in Gradle

2014-11-26 Thread Jonathan S
Apache Commons dependency using Java 6 format. You compiled it under Java 7.

On Wednesday, November 26, 2014 4:48:16 AM UTC-5, Leith Bade wrote:

 I have a bunch of dex warning generated by an Apache Commons dependency 
 like this:
 warning: Ignoring InnerClasses attribute for an anonymous inner class
 (org.apache.commons.beanutils.BeanMap$1) that doesn't come with an
 associated EnclosingMethod attribute. This class was probably produced by a
 compiler that did not target the modern .class file format. The recommended
 solution is to recompile the class from source, using an up-to-date 
 compiler
 and without specifying any -target type options. The consequence of 
 ignoring
 this warning is that reflective operations on this class will incorrectly
 indicate that it is *not* an inner class.

 I would like to set an option in my build.gradle file to disable them.

 How do I do this?


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.