问题:
1、ButterKnife Zelezny 抛出 ArrayIndexOutOfBoundsException错误
2、GenerateFindViewById 抛出 StringIndexOutOfBoundsException错误
导致原因:
因为布局文件的命名中出现两个下划线导致的。比如@id/+id a__b_c。
解决方法:
删除多余的下划线即可
本文介绍了在使用ButterKnife过程中遇到的ArrayIndexOutOfBoundsException和StringIndexOutOfBoundsException错误的原因及解决方法。错误由布局文件中ID命名包含多余下划线引起,解决方式为移除额外下划线。
1、ButterKnife Zelezny 抛出 ArrayIndexOutOfBoundsException错误
2、GenerateFindViewById 抛出 StringIndexOutOfBoundsException错误
因为布局文件的命名中出现两个下划线导致的。比如@id/+id a__b_c。
删除多余的下划线即可

被折叠的 条评论
为什么被折叠?