Google Inc. wants Android to be the operating system for virtual reality.

In the wake of Facebook Inc.’s $2 billion purchase of Oculus VR, Google has assembled a team of engineers to build a version of the Android operating system to power virtual-reality applications, according to two people familiar with the project.

Those people said Google...