Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 93 characters in body
Source Link
doppelgreener
  • 7.3k
  • 7
  • 44
  • 69

Unity Android How do you actually build once youryou encounter the 'Too many method references' error?

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 here..

httpsToo many field references://stackoverflow.com/questions/42582850/unity-too-many-field-references-70613-max-is-65536 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..

https://stackoverflow.com/questions/38980792/exporting-and-running-unity3d-project-to-android-studio/39008549#39008549these instructions

After, and after building my Android studio project had errors relating to the facebook SDK similar to here..

: https://stackoverflow.com/questions/40934964/unity-exporting-android-project-with-facebook-sdk-issueUnity exporting android project with Facebook SDK issue

The solution proposed there is to copy all the .aar.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 

Error: more than one library with package name 'android.support.v7.appcompat

A proposed solution for thatA 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.aar files with appcompat in the name but I ended up reverting to the previous 5 facebook errors

https://stackoverflow.com/questions/29175908/how-to-fix-duplicate-libraries-more-than-one-library-with-package-name-androi

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?

Unity Android How do you actually build once your encounter the 'Too many method references' error

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 here..

https://stackoverflow.com/questions/42582850/unity-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..

https://stackoverflow.com/questions/38980792/exporting-and-running-unity3d-project-to-android-studio/39008549#39008549

After building my Android studio project had errors relating to the facebook SDK similar to here..

https://stackoverflow.com/questions/40934964/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

https://stackoverflow.com/questions/29175908/how-to-fix-duplicate-libraries-more-than-one-library-with-package-name-androi

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?

How do you actually build once you encounter the 'Too many method references' error?

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?

deleted 39 characters in body
Source Link
Guye Incognito
  • 391
  • 1
  • 5
  • 19

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 here..

https://stackoverflow.com/questions/42582850/unity-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..

https://stackoverflow.com/questions/38980792/exporting-and-running-unity3d-project-to-android-studio/39008549#39008549

After building my Android studio project had errors relating to the facebook SDK similar to here..

https://stackoverflow.com/questions/40934964/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 I have aone new one I still have this error in Android studioappears

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

https://stackoverflow.com/questions/29175908/how-to-fix-duplicate-libraries-more-than-one-library-with-package-name-androi

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?

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 here..

https://stackoverflow.com/questions/42582850/unity-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..

https://stackoverflow.com/questions/38980792/exporting-and-running-unity3d-project-to-android-studio/39008549#39008549

After building my Android studio project had errors relating to the facebook SDK similar to here..

https://stackoverflow.com/questions/40934964/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 I have a new one I still have this error in Android studio

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

https://stackoverflow.com/questions/29175908/how-to-fix-duplicate-libraries-more-than-one-library-with-package-name-androi

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?

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 here..

https://stackoverflow.com/questions/42582850/unity-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..

https://stackoverflow.com/questions/38980792/exporting-and-running-unity3d-project-to-android-studio/39008549#39008549

After building my Android studio project had errors relating to the facebook SDK similar to here..

https://stackoverflow.com/questions/40934964/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

https://stackoverflow.com/questions/29175908/how-to-fix-duplicate-libraries-more-than-one-library-with-package-name-androi

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?

Source Link
Guye Incognito
  • 391
  • 1
  • 5
  • 19

Unity Android How do you actually build once your encounter the 'Too many method references' error

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 here..

https://stackoverflow.com/questions/42582850/unity-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..

https://stackoverflow.com/questions/38980792/exporting-and-running-unity3d-project-to-android-studio/39008549#39008549

After building my Android studio project had errors relating to the facebook SDK similar to here..

https://stackoverflow.com/questions/40934964/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 I have a new one I still have this error in Android studio

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

https://stackoverflow.com/questions/29175908/how-to-fix-duplicate-libraries-more-than-one-library-with-package-name-androi

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?