I am trying to add the backwards compatible Gridlayout library to my android project but I can't get it working. And, I have read all other articles on google and on stackoverflow but it still does not work.
Here is what I did, step by step:
Imported the Gridlayout project as an existing project into my workspace. I used the Gridlayout project that i found in my sdk, namely this path:
adt-bundle-mac-x86_64/sdk/extras/android/support/v7/gridlayout
In my actual project I then went to
Properties, Android
and addedandroid-support-v7-gridlayout
as a library to my project.I then went to my xml layout file in my project and added a GridLayout to it.
Here is the code:
<android.support.v7.widget.GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
My problem: When I switch to the Graphical Layout of my xml layout, I see this error message:
The following classes could not be found:
- android.support.v7.widget.GridLayout (Change to android.widget.GridLayout, Fix Build Path, Edit XML, Create Class)
What can I do about that? Any tips? This really drives me crazy...
Here is some additional info on my project:
- In my
Android Dependencies
folder I do haveandroid-support-v7-gridlayout.jar
- In my
gen
folder I have a package calledandroid.support.v7.gridlayout
- The project
android-support-v7-gridlayout
in my workspace does not have any errors
EDIT: Here is a screenshot of my project: