-1

E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@com.example.aneeshas.t4trollers-2@split_lib_dependencies_apk.apk@classes.dex: Permission denied`

The above mentioned is the error which I am getting while run my app. Please help me with a solution

Please find the screenshot below

Aneesh AS
  • 1
  • 2

1 Answers1

0

please add below dependency in app level build.gradel file.

dependencies {
  implementation 'com.android.support:multidex:1.0.3'
}

add below line in sane file

android {
    defaultConfig {
        minSdkVersion 15 
        targetSdkVersion 26
        multiDexEnabled true
    }
}

and last add application class like below

public class MyApplication extends MultidexApplication {
  @Override
  protected void attachBaseContext(Context base) {
     super.attachBaseContext(base);
  }
}

and register your application class in manifest file.

Gunavant Patel
  • 1,413
  • 1
  • 13
  • 17