0

I'm having a very disturbing experience where every instance of TextInputLayout crashes only in the release version of my app . Doesn't crash if I use AppCompatEditText. Doesn't crash in debug version.

 java.lang.IncompatibleClassChangeError: 
    The method 'void android.support.design.widget.TextInputLayout.updatePasswordToggleView()' 
    was expected to be of type direct but instead was found to be of type virtual

XML-LAYOUT

<android.support.design.widget.TextInputLayout
    android:id="@+id/pwdLayout"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    app:layout_constraintEnd_toEndOf="parent"
    android:layout_marginStart="@dimen/_8sdp"
    android:layout_marginEnd="@dimen/_8sdp"
    android:layout_marginLeft="@dimen/_8sdp"
    android:layout_marginRight="@dimen/_8sdp"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/emailLayout"
    app:passwordToggleEnabled="true">
    <android.support.design.widget.TextInputEditText
      android:id="@+id/password"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:hint="@string/login_password_hint"/>
  </android.support.design.widget.TextInputLayout>

Any ideas what might be going on? Thank you. I have gone from 27.1.1 to 26.1.1 support version and error still persists.

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Mbuodile Obiosio
  • 1,463
  • 1
  • 15
  • 19

1 Answers1

0

I think it is more easy:

  • create a new clean project
  • try it there and find out the the differences (there can be some incompatible options in the current project gradle files we wouldn't notice)

Good luck

Hovanes Mosoyan
  • 760
  • 7
  • 10