Android Studio 3.1 EditText StackOverflowError

前端 未结 5 1264
梦毁少年i
梦毁少年i 2020-12-01 02:49

After updating to Android Studio 3.1 I\'m facing exception when EditText in focus

E/AndroidRuntime: FATAL EXCEPTION: main
Process: , PID: 1893         


        
相关标签:
5条回答
  • 2020-12-01 03:04

    I had the same problem, but after:

    • Deleting .idea, .gradle, gradle folder and recreate it.
    • Clean project.
    • Rebuild app.

    it works for me.

    0 讨论(0)
  • 2020-12-01 03:09

    This seems only happens on Android 6.0 devices, the EditText works fine on Android 5 and android 7 devices. Disable advanced profiling (API < 26) in the run configuration works for me.

    0 讨论(0)
  • 2020-12-01 03:14

    Android 5.1.1, same problem. Seems to a bug in new Android Studio. Disabling advanced profiling fixes the problem for debug build.

    0 讨论(0)
  • 2020-12-01 03:17

    As @evi pointed out there is a bug in advanced profiling.

    For now disabling it (Edit configuration settings -> Profiling -> Enable advanced profiling) prevents EditText from crashing

    Update:

    Fix released in Android Studio 3.1.1

    Advanced profiling available once again!

    0 讨论(0)
  • 2020-12-01 03:29

    Faced with same EditText issues just right after update to Android Studio 3.1. Try to set debuggable false in build.gradle for debug build type. Or just switch to release build type since it's false by default. That helped in my case.

    Update: Confirming that disabling advanced profiling fixed my issue as well.

    0 讨论(0)
提交回复
热议问题