trying to set realm {synchEnabled = true }

Trying to setup device synch and verious sources on how to do this mention the need to include

realm {
    synchEnabled = true
}

in the android section of the gradle build file.

when I do that IDE complains with “Unresolved reference: realm”

I suspect I have a library reference missing but I find not documentation that mentions a library reference needed for this.

I have most everything else working. Realm is working fine, and creaating, reading and writing databases. I have sample code working that connects to my Atlas database. Now just trying to get the synch working.