Editor freezes when clicking play or changing mode

After clicking or changing the play mode (VR preview etc.) the editor freezes for a couple of seconds. This started after downloading Android Studio and Oculus Developer Hub. Any help would be appreciated!