Need help importing packages from Google and makes them working all together

Hello everybody,

I am currently facing big issues importing Package from Google and I don’t understand what to do.

I am on Unity 2019.3.0f1 and try to import :

  • Firebase Authentication
  • Firebase Database
  • Google Sign-In
  • Google AdMob
  • Facebook SDK (which is not Google but I had also some conflicts)

To resolve all dependencies, I also use :

  • PlayServicesResolver

From a scratch Unity 2D project, this is what I did :

  • Create a small scene with one “Hello” text in the center of the screen
  • Assets > Import Package > Custom Package… each external package unchecking each time the PlayServicesResolver
  • Finally once everything imported, I import the PlayServicesResolver and make an Android Dependencies Resolve which is successful.

There are two problems :

  • First, I do not master what I am doing and that is why I am facing these problems. I don’t know how to optimize Package Import without making the whole project dead.

  • Whatever I do, I will have a problem somewhere :
    . For the example above, it is impossible to build the project without facing 260 Errors
    5291835--531081--upload_2019-12-17_17-38-21.png

. Sometimes, after I don’t know what, it builds with no error but I have a black screen either on my Android Phone either on Andy emulator.

I understand this is two different cases and that is my problem, I cannot find a way to do this properly whatever the package I import.

EDIT :
I saw the top Error saying :
D8: Cannot fit requested classes in a single dex file (# methods: 65736 > 65536)

Indeed, it helped as I understood I needed Multidex. It fixes the errors and I am able to build the app.
However, now the app is simply crashing.

Sorry you are experiencing this issue. I’ll pass it along to the team for visibility.
Thanks!

Looks like the main issue is with the Asset Store author. I highly recommend contacting them.

1 Like