Application crashes with message exception caused by a factory already set on inflator
I'm using Android Studio 3.1 and in attempting to implement Android Iconics my app crashed on launch. The Logcat reports "java.lang.IllegalStateException: A factory has already been set on this LayoutInflater".

The IDE says "'setFactory(android.view.LayoutInflater, android.support.v4.view.LayoutInflaterFactory)' is deprecated" and struck out setFactory().

What may the fix be?
