我已经为此挣扎了几个小时,不确定为什么我不能编译这个该死的东西。当我尝试包含android.support.v7.widget.GridLayout时,我在预览窗口中看到以下错误:
Rendering Problems The following classes could not be instantiated:
- android.support.v7.widget.GridLayout (Open Class, Show Exception)
Tip: Use View.isInEditMode() in your custom views to skip code or show s
只有当应用程序运行某些设备时,我才会收到StackOverflowError错误,它与其他设备一起工作得很好。
下面是堆栈跟踪:
java.lang.StackOverflowError
at android.support.v7.widget.GridLayout$Axis$1.walk(GridLayout.java:1315)
...
...
at android.support.v7.widget.GridLayout$Axis$1.walk(GridLayout.java:1315)
at android.support.v7.widget.GridLayout$Axis$1.sor