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 Profiler
s
bug. DisablingAdvanced Profiling
on Profiling Tab, in Run/Debug configurations may fix it.
Here related other answer: https://stackoverflow.com/a/49112444/3669559
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:
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
Set Textcursordrawable Programmatically
Onclick Method Not Working Properly After Nestedscrollview Scrolled
How to Bypass The Firebase Cache to Refresh Data (In Android App)
Help with a Custom View Attributes Inside a Android Library Project
Set Visibility of Progress Bar Gone on Completion of Image Loading Using Glide Library
Remove Unwanted White Space in Webview Android
How to Use a Library Project in Android Studio
View Pager + Imageview +Pinch Zoom + Rotation
Make Android Webview Not Store Cookies or Passwords
Android Httpsurlconnection Eofexception
Android: Share Session Between Webview and Httpclient
Android - Set a Progressbar to Be a Vertical Bar Instead of Horizontal
How To: Install Plugin in Android Studio
Bitmapdrawable Deprecated Alternative