3
java.lang.NullPointerException: 

at android.app.assist.AssistStructure$WindowNode.<init> (AssistStructure.java:484)

at android.app.assist.AssistStructure.<init> (AssistStructure.java:1908)

at android.app.ActivityThread.handleRequestAssistContextExtras (ActivityThread.java:3133)

at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1885)

at android.os.Handler.dispatchMessage (Handler.java:108)

at android.os.Looper.loop (Looper.java:206)

at android.app.ActivityThread.main (ActivityThread.java:6784)

at java.lang.reflect.Method.invoke (Native Method)

at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:852)

I am getting this Stack trace from my play console. This crash is happening only in Android 8.0. Any help or suggestion on how to fix this will be appreciated.

Mayank Bhatnagar
  • 1,316
  • 2
  • 13
  • 21

3 Answers3

1

I'm having the same issue. Found this (gona try it now, but maybe it is useful for you too in the meantime):

Android 8.0 Oreo crash on focusing TextInputEditText

Zee
  • 1,592
  • 12
  • 26
1

I have also facing this issue and finally we got the reason of crash on android 8.0 and android 8.1.

first reason(important clue): empty hint(android:hint="") in xml leads to crash in oreo device.Please remove this empty hint in editText in whole project search.

second reason: make sure your editText hint should be show inside TextInputLayout if you have used TextInputLayout otherwise you can use hint inside editText.

Hope this helpe you !!

Thank you

CHANDAN KUMAR
  • 99
  • 1
  • 1
0

So this crash seems only occurring Android OS Oreo with may be on specific device Huawei, to fix this issues just remove the android:hint="some hint" from EditText inside TextInputLayout and place inside TextInputLayout

<android.support.design.widget.TextInputLayout
    android:id="@+id/textInputLayout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:hint="Some Hint Text">

      <android.support.design.widget.TextInputEditText
          android:id="@+id/editText"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/>

</android.support.design.widget.TextInputLayout>

See the Google's Bug Fixes of (June 2017) here

Amir Raza
  • 2,320
  • 1
  • 23
  • 32