我刚刚去
Android市场发布我的应用程序的更新,并注意到现有安装报告了一些新的错误.虽然我可以理解(并尝试做一些事情)大部分,但这让我感到很困惑:
java.lang.StackOverflowError at android.view.ViewGroup.resetResolvedTextDirection(ViewGroup.java:5131) at android.view.ViewGroup.resetResolvedTextDirection(ViewGroup.java:5131) at android.view.ViewGroup.resetResolvedTextDirection(ViewGroup.java:5131) at android.view.ViewGroup.resetResolvedTextDirection(ViewGroup.java:5131) at android.view.ViewGroup.resetResolvedTextDirection(ViewGroup.java:5131) at android.view.ViewGroup.resetResolvedTextDirection(ViewGroup.java:5131) ... this line repeats about 200 times or so ...
这就是全部 – 没有任何其他类型的信息.
我完全不知道从哪里开始调查这个问题.任何想法都非常感谢.
解决方法
这似乎是ICS中添加的方法,因此它已经达到4.0以上.看看
the code,你的层次结构中似乎有某种视图循环,因为它显然是child.resetResolvedTextDirection();这样做.换句话说,你的布局中的一个ViewGroup类已经以某种方式被添加为自己的某个孩子.