I\'ve tried both the example in Oracle\'s Java Tutorials. They both compile fine, but at run-time, both come up with this error:
Exception in thread \"main\"
If you are using more than one module, you should have
dexOptions { preDexLibraries = false }
in your build file.