Android Studio:当我运行应用程序时,我遇到了这个错误

Android Studio:当我运行应用程序时,我遇到了这个错误,android,android-multidex,Android,Android Multidex,错误:任务“:app:transformClassesWithMultidexlistForDebug”的执行失败。 java.io.FileNotFoundException:/home/Pictures/trackings/app/build/intermediates/multi-dex/debug/manifest\u keep.txt(无此类文件或目录) 当我在IDE中运行应用程序时,会出现此错误 在manifest.xml中,我添加了以下行: android:name="androi

错误:任务“:app:transformClassesWithMultidexlistForDebug”的执行失败。 java.io.FileNotFoundException:/home/Pictures/trackings/app/build/intermediates/multi-dex/debug/manifest\u keep.txt(无此类文件或目录)

当我在IDE中运行应用程序时,会出现此错误

在manifest.xml中,我添加了以下行:

android:name="android.support.multidex.MultiDexApplication"

创建multidex文件并在app gradle中编写以下代码

android {
buildTypes {
    release {
        multiDexKeepFile file 'multidex-config.txt'

    }
  }
}

清理应用程序并运行它。