java.lang.VerifyError with API < 21

蓝咒 提交于 2019-12-04 19:43:08

SOLVED

The problem was...drumroll...the buildToolsVersion!

I changed the buildToolsVersion in my gradle (only the buildToolsVersion) from 22.0.1 to 23 rc3 (the last one from preview channel) and it worked well with api < 21 with multidex.

The other problem might be when you use some library exceptions (for me it was KeyPermanentlyInvalidated Exception) and it only appeared with api <21. As soon as I changed it to simple Exception, everything was fine. This helped me perfectly https://stackoverflow.com/a/16060251/12258664

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