I am getting this error trying to build a Xamarin.Forms application.
I have Xamarin.Studio for macOS 6.3 (build 863), Xamarin.Android 7.2.0.7, JDK 1.8.0_131, Mono runtime 4.8.1, and Android SDK tools 25.2.5, platform tools 25.0.5, build tools 25.0.3 installed. The Droid project has a minimum android framework target of API17, but a target API framework of 25. I have updated all of the Xamarin.Android.Support nugets to 25.3.1, and have the Xamarin.GooglePlayServices.* packages at v42.1021.0. Xamarin.Forms version is 2.3.4.231.
I can no longer build my Droid project because of the following error:
`
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (_CompileToDalvikWithDx target) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Tool exited with code: 2. Output: warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.validator.ValidatorResources$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.
`
nothing I have found offers any real help in solving this problem. I have not yet resorted to completely removing Xamarin Studio.
What can I do to get around this issue?
Thanks,
Matthew