E/AndroIDRuntime: FATAL EXCEPTION: mainProcess: <package>, PID: 18938java.lang.StackOverflowError: stack size 8MB at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46) at androID.vIEw.inputmethod.inputConnectionWrapper.getTextBeforeCursor(inputConnectionWrapper.java:46)
@H_404_0@知道如何解决这个问题吗?@H_404_0@更新:@H_404_0@经过一些研究后,我发现StackOverflowError出现了不同的堆栈跟踪和简单的EditText:@H_404_0@<EditTextandroID:ID="@+ID/editText"androID:layout_wIDth="match_parent"androID:layout_height="wrap_content"app:layout_constrainttop_totopOf="parent"/>
@H_404_0@当我尝试输入任何符号时,我得到:@H_404_0@E/AndroIDRuntime: FATAL EXCEPTION: mainProcess: <package>, PID: 21122java.lang.StackOverflowError: stack size 8MB at androID.vIEw.inputmethod.inputConnectionWrapper.beginBatchEdit(inputConnectionWrapper.java:106)
@H_404_0@当我按下时:@H_404_0@E/AndroIDRuntime: FATAL EXCEPTION: mainProcess: <package>, PID: 21280java.lang.StackOverflowError: stack size 8MB at androID.vIEw.inputmethod.inputConnectionWrapper.finishComposingText(inputConnectionWrapper.java:78)
@H_404_0@甚至在WebVIEw中输入文本也会导致此错误@H_404_0@在AS 3.0 EditText中工作正常解决方法:
@H_404_0@正如@evi所指出的,有a bug in advanced profiling.@H_404_0@暂时禁用它(编辑配置设置 – >性能分析 – >启用高级性能分析)可防止EditText崩溃@H_404_0@更新:@H_404_0@修复于Android Studio 3.1.1发布@H_404_0@高级分析再次可用! 总结以上是内存溢出为你收集整理的Android Studio 3.1 EditText StackOverflowError全部内容,希望文章能够帮你解决Android Studio 3.1 EditText StackOverflowError所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)