Can no longer use:
private val crimeListViewModel: CrimeListViewModel by lazy {
ViewModelProviders.of(this).get(CrimeListViewModel::class.java)
}
as “ViewModelProviders…” is no longer valid. Tried various changes in gradle dependencies with no luck. Anyone have the workaround for this??
(strangely had this working in Geoquiz, although strikethrough deprecated, but even using the same settings in CrimeIntent can’t repeat my luck!!)
thanks
Jon
SOLVED: see jpaone: Solution to Deprecated method ViewModelProviders#of