Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

Discussion in 'Package Manager' started by sthill95, Dec 17, 2019.

  1. sthill95

    sthill95

    Joined:
    Dec 17, 2019
    Posts:
    3
    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
    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.
     
    Last edited: Dec 17, 2019
  2. AskCarol

    AskCarol

    Joined:
    Nov 12, 2019
    Posts:
    234
    Sorry you are experiencing this issue. I'll pass it along to the team for visibility.
    Thanks!
     
  3. AskCarol

    AskCarol

    Joined:
    Nov 12, 2019
    Posts:
    234
    Looks like the main issue is with the Asset Store author. I highly recommend contacting them.
     
    Thanitsak likes this.