Skip to content Skip to sidebar Skip to footer

Error: "The Following Classes Could Not Be Found: - Android.support.v7.widget.GridLayout" After Upgrading Android SDK Tools

An app has been using android.support.v7.widget.GridLayout for a while without any problem. I upgraded Android SDK Tools to 22.0.1 this morning. Now, it seems that the app canno

Solution 1:

Apparently, you do not have the Android library project containing GridLayout referenced from your project, perhaps because the old reference is now broken.


Solution 2:

Edit you project's (and library project's too) .classpath file like this:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="output" path="bin/classes"/>
</classpath>

Solution 3:

It probably updated your default support v4 lib and now the on in your projetc/lib folder is probably a different version from the one inside v7.

Delete the support v4 jar file in your project/lib folder.

You can have it there and work with the support v7 lib, but v7 already has a v4 lib and they must have the same version to work.

Remove the v4 jar file in your lib folder, then add the v7.


Solution 4:

Important Change

It has been removed as of API 25.0.0:

You should replace android.support.v7.widget.Space with android.support.v4.widget.Space


See here

android.support.v7.widget.Space has been removed. Usages should be replaced with android.support.v4.widget.Space.


Post a Comment for "Error: "The Following Classes Could Not Be Found: - Android.support.v7.widget.GridLayout" After Upgrading Android SDK Tools"