Android Studio 3.1 Edittext Stackoverflowerror

Android Studio 3.1 EditText StackOverflowError

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!

App crashing on clicking on EditText with latest updates (gradle 4.4 - android studio 3.1)

UPDATE: There is one other reason to this error, Android Profilers
bug. Disabling Advanced Profiling on Profiling Tab, in Run/Debug configurations may fix it.

Here related other answer: https://stackoverflow.com/a/49112444/3669559

Sample Image


You are getting java.lang.StackOverflowError which means most possibly you have calling some methods recursively and continuously. That causes infinite loop and this error.

If you have TextWatcher or any listener like OnFocusChangeListener on this EditText, you need to check it.

InputConnectionWrapper.commitText StackOverflowError in HTC devices

I'm getting the same error Nexus 5. Looks like it's Android profiler bug. You can fix it by disabling advanced profiling in Run configuration:
Sample Image

UPDATE: According to issue this should be fixed in Android Studio 3.1 beta 1.

UPDATE 2: @ilyamuromets confirms issue to be solved in AS 3.1.1



Related Topics



Leave a reply



Submit