Error when calling enableAdvertisingIdCollection on Android

Receiving "cannot read property length of undefined" on Android when calling enableAdvertisingIdCollection method.