[Solved] The type or namespace 'UI' does not exist in namespace 'UnityEngine' and more

Import Unity UI package in Windows->package Manager->Unity Registry-> Unity UI