Android IDE (AIDE) Support Forum

Androidx 'Unable to instantiate application'

After finally setting up my projects to use Androidx with no errors or anything, I eventually end up with a crash saying ‘Unable to instantiate application’ caused by the ClassNotFoundException and the IOException ‘Failed to open dex files’.
The app keeps working fine until some point after adding extra classes it crashes with the previous exceptions.
The Application class extends androidx’s MultiDexApplication : implementation ‘androidx.multidex:multidex:2.0.1’
I also use implementation ‘androidx.lifecycle:lifecycle-livedata:1.0.0’ and implementation (‘android.arch.core:runtime:1.1.1’){ force = true }
So basically, I’m stuck with no specific solution in mind. At first I thought this was caused after adding some xml drawables but then realized it wasn’t this.
Setting minSdkVersion to 24 also didn’t help. (Multidexing is only supported on 21 + ).
Any ideas or anyone else working on a big project ?