Home » Android » android – app crashed wiht classes.dex permission denied error

android – app crashed wiht classes.dex permission denied error

Posted by: admin June 15, 2020 Leave a comment


My app is crashed with following error,

 E/dex2oat: Failed to create oat file:/data/dalvik-cache/arm/[email protected]@[email protected][email protected]: Permission denied

And our app use mutipule dex, does they have relation?

How to&Answers:

I had a similar problem and my solution was disable the Instant Run, if you’re using Android Studio…


I had got a similar error when i used multi dex for the first time,
This guide helped a lot,

My error was i forgot to add this in the application class:

public class MyApplication extends SomeOtherApplication {
  protected void attachBaseContext(Context base) {

in your build gradle, make sure you have included the following lines:

android {
    defaultConfig {
        minSdkVersion 15 
        targetSdkVersion 25
        multiDexEnabled true

dependencies {
  compile 'com.android.support:multidex:1.0.1'

Even then multi dex has limitations with progaurd, read the guide to find out if that is causing this issue.