&gt; In general, no Java library works on Android except by happy coincidence<p>This is not true at all.<p>Every single library I have ever added in my build.gradle has <i>always</i> worked. Every. Single. Time.<p>Even libraries that were compiled with Java 8, which is the most baffling thing, if you think about it (since Android doesn&#x27;t support Java 8).<p>Most of these libraries were compiled and deployed to the Maven repo by Java developers who had no idea whether their library was going to be used on Android. And yet, it does.<p>This is no happy coincidence.