trouble writing output: Too many field references: 72355; max is 65536
Hi there, I've started a project which is so little it has only the menu scene. All I've done is import 3 packages: FirebaseAuth FirebaseAnalytics FacebookSDK All are latest and official And now I can't build for Android with the following error, WTF, Why? I'll be greatfull if anyone can help me with this issue!
CommandInvokationFailure: Unable to convert classes into dex format. C:/Program Files/Java/jdk1.8.0_144\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/rumer/AppData/Local/Android/sdk1\tools" -Dfile.encoding=UTF8 -jar "D:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
trouble writing output: Too many field references: 72355; max is 65536. You may try using --multi-dex option. References by package: 2 android.accounts 26 android.app 1 android.content 39 android.content.pm ... ... .......
Answer by Amirraza · Oct 15, 2018 at 01:53 AM
i have the same issue kindly if you solve it make it public i am stuck from many days @talrumers
Your answer
![](https://koobas.hobune.stream/wayback/20220612143720im_/https://answers.unity.com/themes/thub/images/avi.jpg)