Hi! I’m trying to use multidex in my project to solve the problem associated with the limitation on the number of methods. I created mainTemplate.gradle file, then I added some lines of code to use multidex. So, now, when i build my project I can see that error(see pic below). I am not using export in Android Studio, buliding apk using only Unity. What am I doing wrong or how can I update gradle to solve this?
Hi! This error could be caused by having a newer version at the end of “com.android.tools.build:gradle:2.1.0” in the mainTemplate.gradle. Is your version 2.1.0 or higher?
I don’t know which version I use and don’t know how to find it out or change it. Please, can you instuct me how to do it?
Search for the line “com.android.tools.build:gradle” in mainTemplate.gradle and see what numbers are next to that.