I am trying to add a backward compatible Gridlayout library to my Android project, but I cannot get it to work. And I read all the other articles on google and stackoverflow, but it still doesn't work.
Here is what I did, step by step:
Imported a 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 switched to Properties, Android and added android-support-v7-gridlayout as a library for my project.
Then I went to my xml layout file in my project and added 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 with this? Any tips? It really drives me crazy ...
Here are some additional details about my project:
- In my
Android Dependencies folder, I have android-support-v7-gridlayout.jar - In my
gen folder, I have a package called android.support.v7.gridlayout - The
android-support-v7-gridlayout in my workspace has no errors
EDIT: here is a screenshot of my project:

source share