Search Unity

Official Workaround tip for build failures due to Google-related dependency errors

Discussion in 'Unity Build Automation' started by Danny327, May 27, 2021.

  1. Danny327

    Danny327

    Unity Technologies

    Joined:
    Jan 4, 2021
    Posts:
    78
    Hi everyone!

    There have been several reports that builds via Unity Cloud Build keep failing due to errors as below:

    [Unity] An error occurred while resolving packages:
    [Unity] Project has invalid dependencies:
    [Unity] com.google.external-dependency-manager: Package [com.google.external-dependency-manager@1.2.159] cannot be found
    [Unity] com.google.firebase.analytics: Package [com.google.firebase.analytics@6.15.2] cannot be found
    [Unity] com.google.firebase.auth: Package [com.google.firebase.auth@6.15.2] cannot be found
    [Unity] com.google.firebase.crashlytics: Package [com.google.firebase.crashlytics@6.15.2] cannot be found
    [Unity] com.google.firebase.database: Package [com.google.firebase.database@6.15.2] cannot be found
    [Unity] com.google.firebase.dynamic-links: Package [com.google.firebase.dynamic-links@6.15.2] cannot be found
    [Unity] com.google.firebase.storage: Package [com.google.firebase.storage@6.15.2] cannot be found


    This may be due to the fact that Game Package Registry (GPR) by Google has been shut down on May 19, 2021. To avoid this error going forward, please refer to the Migrating from UPM packages to Asset packages section on this page(linked) and follow the instructions.

    Thank you!
     
  2. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    112
    Why Google had done this?
    Would be great if someone host those packages at any package host such as NPMJS if that is possible.
     
  3. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    Unity's new guidelines now forbid any 3rd party code from downloading packages, scripts, and assets in the editor. Google's automated dependency manager violates the new guidelines and thus Google decided to shut it down.