方法数超过限制,Google官方解决方案链接:https://developer.android.com/studio/build/multidex.html
对了,如果参考第三种方案,发现 Multidex.install(this); 这一行代码总是报错,尝试用这行代码:
MultiDex.install(this); 大小写不一样,没有Multidex这个类,但是有MultiDex类。
方法数超过限制,Google官方解决方案链接:https://developer.android.com/studio/build/multidex.html
对了,如果参考第三种方案,发现 Multidex.install(this); 这一行代码总是报错,尝试用这行代码:
MultiDex.install(this); 大小写不一样,没有Multidex这个类,但是有MultiDex类。