Eclipse giving an error of android.support.v7.widget.GridLayout failed to instantiate

后端 未结 4 1532
野趣味
野趣味 2020-12-19 03:38

I have tried to incorporate the GridLayout from the support library, but it is not working. My target build is for API version 10. The XML code I am using is shown below:

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 03:51

    I try a number of solution provided by different contributor (eg restart Eclipse, removing and adding libary etc)

    After looking at this site, I did the following:

    1. Replace all the library android-support-v4.jar with the android-sdk (hoping that it will be the latest copy)
    2. I commented the Gridlayout in xml and use the layout editor just drag gridlayout.

    After that everything works for me. I am not sure which step is the one that fix it but there is no harm trying.

提交回复
热议问题