I do not think that you can use SnakeYaml on Android without changes (at least for now).
By default, SnakeYaml uses the Introspector to get PropertyDescriptors for classes, and as I see it, java.beans.Introspector not available on Android. But there is BeanAccess.FEILD mode in SnakeYaml that uses fields to reset / load beans. This mode uses only java.lang.reflect tags available on Android.
So, with some changes, this might work. But I need to try to be sure.
Added
Now the Android compatible version of SnakeYaml can be built using:
mvn -Pandroid clean package
Update (March 2017):
Starting with version 1.18, the Android assembly is in the center. You can add a dependency to your pom.xml like this
<dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version> VERSION </version> <classifier>android</classifier> </dependency>
maslovalex
source share