Android Studio:当我运行应用程序时出现此错误

时间:2017-04-29 11:44:28

标签: android multidex

  

错误:任务':app:transformClassesWithMultidexlistForDebug'的执行失败。   java.io.FileNotFoundException:/home/Pictures/trackings/app/build/intermediates/multi-dex/debug/manifest_keep.txt(没有这样的文件或目录)

当我在IDE中运行我的应用程序时,我收到此错误。

在manifest.xml中我添加了这一行:

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

1 个答案:

答案 0 :(得分:1)

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

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

    }
  }
}

Refer this documentation for more details

相关问题