Unity: Resolving Android Dependencies freeze. Cannot import any plug-in

12,355

Solution 1

Well...the problem was that my project folder had spaces in it. If it was Test App, it should have been TestApp. When I created my project in Unity (Its my first project) I neglected the name of the Project is used as the folder name too. I understood how the whole engine works inside out in hopeless attempts to fix it, but never did I suspect it was so simple.

Solution 2

Not sure if this will help or cause more issues -- as I will find out soon I guess, but if you already have Play Services package installed along with the Play Services Resolver that comes with it...when importing the AdMobs package make sure that you uncheck the Play Services Resolver before import since it is already installed. You can manage/update the Play Services Resolver from the Assets menu if needed I believe.

Solution 3

In ProjectSettings you can remove (I suggest rename) the AndroidResolverDependencies.xml then restart unity. I takes time but you can see jdk working, so wait and it fixes any problem.

Solution 4

Try going to Edit > Preferences > External Tools > Check/Uncheck the JDK/etc paths and close the window. It can trigger the android dependency manager to continue. If not, go to Assets > External Dependency Manager > Android Resolver > Resolve.

Share:
12,355

Related videos on Youtube

TheNewbie
Author by

TheNewbie

Updated on September 14, 2022

Comments

  • TheNewbie
    TheNewbie over 1 year

    I have a huge issue. For some reason, I am unable to import almost any plug-in into my Unity project. Whenever the import finishes, I get the Resolving Android Dependencies screen, which never actually resolves the issue. I recently got this issue when I imported the Unity Mediation Plug-in and now I reinstalled my Android Studio, Java and Unity, which resulted in the same error but now even for plug-ins, which worked before. I have no idea what to do. After the reinstall, I had to downgrade my SDK tools to 25.0.5 or I couldn't build the project due to JAVA_HOME error in the Unity Editor. Everything else is up-to-date.

    Any help is appreciated. enter image description here

  • ChicoDelaBarrio
    ChicoDelaBarrio about 5 years
    This solved this issued for me when trying to import firebase analytics to unity. As you suggested, I renamed the file and reopened unity. it opened with some error about gradle. Then I noticed it created a new file with the same name. I saved my scene, restarted and after importing firebase analytics everything worked fine.
  • Kleber
    Kleber about 5 years
    2019 and we still have to avoid spaces... man! that will never change!
  • Anurag Sharma
    Anurag Sharma about 3 years
    @Deppanshu, with screenshots, please try to add more descriptions too