Had a crash while trying to use the new TextInputField for Android and wanted to share my solution.
TextInputField
Trying the new TextInputField in the android appcomp
Make sure the LayoutInflater is created from an AppCompatActivity
ex.
instead of
inflater = (LayoutInflater)ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
use:
inflater = LayoutInflater.from();