gpt4 book ai didi

android - StringIndexOutOfBoundsException : String index out of range: When using a "Android Layout Inspector"

转载 作者:行者123 更新时间:2023-12-04 14:00:02 25 4
gpt4 key购买 nike

每次我使用 Android Layout Inspector 时,我都会收到那个错误,这不允许我检查我的页面。

StringIndexOutOfBoundsException:字符串索引超出范围:5101

在这个页面中有一个非常长的 TextView,我认为这可能是问题所在,因为当我加载一个较短的 Textview 时,我可以正常使用 Android Layout Inspector。

关于可能是什么问题的任何建议?

最佳答案

机器人:自动填充提示 添加到 编辑文本 在布局检查器建议中单击修复。 Action 设置机器人:autofillHints = "" .简单地提供了一个类似这样的值。 android:autofillHints = "电话" .您也可以使用字符串值。像这样的东西。 android:autofillHints = "@string/电话"这个值来自字符串值。

关于android - StringIndexOutOfBoundsException : String index out of range: When using a "Android Layout Inspector",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50746315/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com