Getting “package android.support.multidex does not exist” after upgrading to Android Studio 2.3

天大地大妈咪最大 提交于 2019-12-03 22:12:45

I have passed the building. my solution is that adding explicit dependencies in build.gradle. compile 'com.android.support:multidex:1.0.1'

The solution to this problem is to add the following:

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

in your build.gradle file.

This was not required prior to Gradle 3.3. This problem occurs only for apps that support Android versions below Lollipop (API level 21).

References:

1. Multidex support prior to Android 5.0.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!