I am getting the exception below when I am trying to run the application using Android Studio:
Error:Execution failed for task \':app:transformClasses
For me closing all other Android Studio solved the problem.
I had opened 3 android studios when I was getting the error, after I closed 2 I didn't get any error.
No need to add any code related to multiDex !
Seems like there was some memory issue related to jvm.