I had to copy the AndroidPlayer playbackengine folder from a new version on another machine than the 2019.4.29f1 version I’m using as Unity Hub refuses to install the Android components (I’m uninstalled and reinstalled 5 times ) and now when attempting to build the Android version I’m getting weird errors:
Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Layout\CanvasScaler.cs(241,20): error CS0117: ‘Canvas’ does not contain a definition for ‘preWillRenderCanvases’
Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Layout\CanvasScaler.cs(253,20): error CS0117: ‘Canvas’ does not contain a definition for ‘preWillRenderCanvases’
Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\Layout\CanvasScaler.cs(302,43): error CS1061: ‘Canvas’ does not contain a definition for ‘renderingDisplaySize’ and no accessible extension method ‘renderingDisplaySize’ accepting a first argument of type ‘Canvas’ could be found (are you missing a using directive or an assembly reference?)
Any ideas why I’m getting this? Seems unrelated to a platform. The Windows version builds just fine.
You cannot copy playbackengine from a different Unity version, the errors you’re seeing might be the side effect of this.
Not sure what’s the issue with hub, but try manually deleting Unity installation folder and then attempt the install. In case of file lockage, restart PC, before deleting.
Plenty of space on the install drive, so I know it’s not that, but since I have no idea what “Validation Failed” means I don’t know where to go from here.