playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.43k stars 953 forks source link

Can not build for Android. Conflict with FirebaseMessaging and OneSignal #2140

Open alo-xvi opened 6 years ago

alo-xvi commented 6 years ago

Hi. I'm having a build problem as follows: CommandInvokationFailure: Unable to convert classes into dex format. /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/aloimmaculata/android-sdk-macosx/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity2017.2.0f3/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" - stderr[ trouble writing output: Too many field references to fit in one dex file: 99430; 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.

after I imported Firebase in my project. I have also the latest PlayGames SDK 0.9.50 Can someone please help, I've been solving this for days. Thanks.

Marinos3004lite commented 6 years ago

Same here, If you find anything it will be nice. I ve been trying to solve it too but I can't figure what is going wrong.

alo-xvi commented 6 years ago

Now I tried the OneSignal for push notification, but it also give me the same problem/issue. I've been solving this for a couple of days.