I had similar errors, but the problem was imeActionId , not imeOptions . Removing imeActionId from XML and setting it to code (but saving imeOptions ) solved this problem.
Here are my mistakes for reference and for search robots so people can more easily find this answer:
android.view.InflateException: XML file app/build/intermediates/res/debug/layout/fragment_registration_form.xml line #-1 (sorry, not yet implemented): Error inflating class com.company.project.widgets.MyCustomEditTextView ... Caused by: java.lang.reflect.InvocationTargetException ... Caused by: java.lang.NumberFormatException: For input string: "@0" ...
I think Robolectric cannot parse imeActionId correctly for some reason. This seems to be related to the problem described in this question: Why setting imeActionId with a predefined identifier resource generates an error?
source share