Too many field references to fit in one dex file: 69133; max is 65536.
I used unity 5.43f1 and lates version of android studio 2.3.3 and SDK when add googleplayservice, firebase messaging service, facebook and admob Unity Stop building and show next message - trouble writing output: **Too many field references to fit in one dex file: 69133; max is 65536. You may try using multi-dex. If multi-dex is enabled then the list of classes for the main dex list is too large.**
I searched solutions about this and find some answers are this : [ **export Gradle whith Unity 5.5 and build in android studio whith multi_dex option** ] so I upgraded Unity to 5.61 and imported Android studio using multi-dex option and it was successed to build .
BUT I found that **building in lower version of android sdk, it could be build whithout 65k error** !!!
My question is that **why lower version of android sdk can build whitout 65k error but latest version of sdk can not build ?** I think there are some problems Unity building in lates version of android SDK or other problem I don't know ?
↧