google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
347 stars 97 forks source link

Unable to import UPM package (without EDM4U) #107

Open pixlhero opened 1 year ago

pixlhero commented 1 year ago

When trying to import the ARCore Extensions (without EDM4U) following these instructions. It gives me the error

[Package Manager Window] Cannot perform upm operation: Unable to add package [file:/Users/raphaelanderegg/Downloads/arcore-unity-extensions-1.34.0-without-edm4u.tgz]: Package com.google.ar.core.arfoundation.extensions-lite@file:/Users/raphaelanderegg/Downloads/arcore-unity-extensions-1.34.0-without-edm4u.tgz has invalid dependencies or related test packages: com.google.external-dependency-manager (dependency): Version '^1.2.169' is invalid. Expected a 'SemVer' compatible value. [NotFound]. UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:356)

Might there be something wrong with the package dependency definitions?

Unity version: 2021.3.5f1 Intel on M1 Mac

michelepanegrossi commented 1 year ago

I have the same issue on 2021.3.15f and intel macbook pro. For me the solution was to use the version with bundled dependencies, remove the external dependencies manager from the package and install the external dependencies manager from this link.

NgocNguyen95 commented 1 year ago

I found a perfect solution for this issue. I want to provide it here so anyone looking for it will find my answer. The instruction mentioned above is correct, however, the link to download the EDM package is wrong. The key to making it work is to install all packages with UPM from the TGZ file, including the EDM, which you should able to download from this link https://developers.google.com/unity/archive#external_dependency_manager_for_unity. The link provided in the instruction for the EDM only has the option to download the UnityPackage file, therefore messed up everything