Project has invalid dependencies:
com.unity.modules.androidjni: no such package available : com.unity.modules.androidjni
com.unity.ugui: no such package available : com.unity.ugui```
funny tho in the Unity IDE itself it works flawless. :/
i have looked trough several of the issue topics here but no solution helped me so far.....
I hope someone can help me.
I’m surprised that this isn’t working. Can you specify what Unity version you are using? You seemed to have installed the Editor without using the Hub, correct? And lastly, could you please create a Bug Report and attach the generated Editor.log so we can inspect it?
i have installed 2020.2.1f1 over the Unity_Hub, it is the only version i currently have installed
Unity Hub version is Version 2.4.2 (2.4.2)
i am running macos big sure 11.1 on a 2019 macbook pro 16 inch
i am using a custom script i found in the forum and which i modified a bit so far to serve my need better. i will attach it here
if i execute the commands over the Unity IDE everything works fine and the clients are build.
– ios can be compiled to an xcode project to be installed on an ipad
– macos can be compiled
– android can be compiled
i have checked the Unity Log folder but if i clear everything, the only log which is recreated when i execute my cli command is the upm.log
Edit 1: i have tested now if this is reproducable and actually it is.
Step 1: Create a new 3D Project
Step 2: Copy the BuildCommand.cs to the Editor folder under Assets so it gets loaded by Unity
Step 3: Close unity and open a terminal
Step 4: execute the command from below
Expected Behaviour: The client should build fine
Actual Behaviour: The Package Manager returns an error related to the ugui and androidjndi package which can not be resolved
Loading GUID ↔ Path mappings…0.000047 seconds
Loading Asset Database…0.012246 seconds
Audio: FMOD Profiler initialized on port 54900
AssetDatabase consistency checks…Rebuilding GUID cache … 0.005254 seconds.
0.043577 seconds
Refreshing native plugins compatible for Editor in 22.10 ms, found 1 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
DisplayProgressbar: Unity Package Manager
[Package Manager] Done resolving packages in 1.13s seconds
[Package Manager] An error occurred while resolving packages:
Project has invalid dependencies:
com.unity.2d.sprite: no such package available : com.unity.2d.sprite
com.unity.2d.tilemap: no such package available : com.unity.2d.tilemap
com.unity.modules.androidjni: no such package available : com.unity.modules.androidjni
com.unity.ugui: no such package available : com.unity.ugui
A re-import of the project may be required to fix the issue or a manual modification of /Users/marco/Projects/XXXX/XXXX/Packages/manifest.json file.
[Package Manager] Server::Kill – Server was shutdown
after a night of sleep i took this again into my hands and checked the fact that you for some reason assumed i do not have installed Unity over the hub. I was abit confused that the path of Unity was not part of the Hub folder under Unity and wiped EVERYTHING away from my macbook related to Unity.
apparently you were right even tho i do not get how this is even possible as i always had used Unity with the hub since i can think of.
but based on the things i found, apparently i had a super weird screwup version of unity running which was “apparently” installed by the Hub, into the existing installation directly with a mixup of the 2018 package manager + unity 2020.2.1f1 + temp files of extremly old textmesh packages which in the editor appeared to be as 3.0.3 but where 2.x.x (this might also explain some issues i had with my project recently.
now i am able to build with the client just fine.
Problem solved o.o