且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MultiDex问题 - 执行失败的任务“:应用程序:dexDebug”

更新时间:2023-11-17 19:13:46

当您添加 multidex:真正的不要忘了做一个应用类项目,从扩展 MultiDexApplication 还是有很多坏的东西会发生

When you add the multidex:true don't forget to make an Application class in your project that extends from the MultiDexApplication or a lot of bad stuff will happen

public class YourApplication extends MultiDexApplication {
    ..........
}

和别忘了这是(该版本可能会随时间而改变,当你读到这,请确保您使用最新版本)

And don't forget this either (the version may change over time, if you read this, make sure you use the latest version)

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