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 recently added multidex support in android studio like this:
// To Support MultiDex implementation 'com.android.support:multidex:1.0.1'
so your solution is just extend From MultiDexApplication instead of Application
public class MyApp extends MultiDexApplication {