Rosjava android_apps compilation errors

asked 2016-06-28 13:07:20 -0500

cmayer.5d gravatar image

When compiling the rosjava android_apps example apps I get ~192 errors from gradle that resemble this:

"warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.ws.commons.util.Base64$2) 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've found other questions online where people have had this same problem, but none of the answers I've tried have worked (and it seems like other people have had as similar experience).

What I've tried so far:
- Using the latest version of Gradle
- Using the latest Android SDK
- Using the latest Android SDK and the latest version of Gradle
- Creating a fresh project that adds android_core as a dependency as their apps do

The end goal is to create a simple ROS node Android app. Has anyone had success with this recently?

Note: it looks like in older versions of Gradle these show up as warnings instead of errors

edit retag flag offensive close merge delete

Comments

Same here. I get also 192 errors, but fortunately I can compile and run the app instead (using Android Studio)

mmore gravatar image mmore  ( 2016-07-22 05:43:45 -0500 )edit

This shouldn't be happening right now with the latest updates.

jubeira gravatar image jubeira  ( 2017-11-07 07:34:00 -0500 )edit