Updated 2018.3.13f1 -> 2019.4.6f1 - Conflicting "Touch" reference

Hello.
Just updated the Unity version on our game project, and now I am getting these errors:

C:\Program Files\Unity\Hub\Editor\2019.4.6f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\PointerInputModule.cs(70,61): error CS0433: The type 'Touch' exists in both 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.InputLegacyModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
C:\Program Files\Unity\Hub\Editor\2019.4.6f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\BaseInput.cs(21,24): error CS0433: The type 'IMECompositionMode' exists in both 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.InputLegacyModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
C:\Program Files\Unity\Hub\Editor\2019.4.6f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\BaseInput.cs(106,24): error CS0433: The type 'Touch' exists in both 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.InputLegacyModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

Preventing further compilation.
What can I do?

Cheers!

I solved it. To anyone that might have the same issue, the old version of Unity had the Android module installed, but the new one didn’t. And for some reason that resulted in this. I added the Android module to the newer version of Unity and upgraded it again, and it worked.