I'm making a very simple mobile F2P arcade game in Unity After adding SDKs for facebook, gamesparks, firebase, and appodeal I coud not build, getting the "Too many method references: 76221; max is 65536" error.
The solution from Too many field references: 70613; max is 65536 is apparently to export an ADT project, import it into Android studio and go from there.
I built following these instructions, and after building my Android studio project had errors relating to the facebook SDK similar to here: Unity exporting android project with Facebook SDK issue
The solution proposed there is to copy all the
.aar from your Unity project to files to the Android studio project and add lines to the build.gradle file referencing them, which I did.
After doing all that the 4 facebook related errors are gone but one new one appears:
Error: more than one library with package name 'android.support.v7.appcompat
A proposed solution for that is to search for the offending file and delete it in windows explorer but there is nothing with that name in my Android studio project folder. I tried removing some
.aar files with appcompat in the name but I ended up reverting to the previous 5 facebook errors
This whole thing has been a bit of a nightmare and I have no idea what I am doing. I would love to hear from someone who encountered this error and got past it and was able to build their game again. Surely this must be a common issue for anyone making a commercial mobile game in Unity?