错误:"下面的类不能被找到: - android.support.v7.widget.GridLayout"升级Android SDK工具后 [英] Error: "The following classes could not be found: - android.support.v7.widget.GridLayout" after upgrading Android SDK Tools

查看:576
本文介绍了错误:"下面的类不能被找到: - android.support.v7.widget.GridLayout"升级Android SDK工具后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是应用程序一直使用android.support.v7.widget.GridLayout一段时间没有任何问题。我今天早上升级Android SDK工具为22.0.1。现在,似乎应用程序无法看到该库了。在Java code有以下错误:

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 cannot see the library anymore. The Java code has the following error:

The import android.support.v7.widget cannot be resolved

我试图通过删除GridLayou它认为这将有助于正确配置项目使用GridLayout的一个网格布局添加到虚拟布局文件。但是,这会产生以下错误:

I tried to add a GridLayout to a dummy layout file by dropping GridLayou to it thinking this would help configure the project properly for using GridLayout. However, this generates the following error:

The following classes could not be found:
- android.support.v7.widget.GridLayout

我已经重新启动Eclipse中多次和清理所有项目。 Gridlayout_v7.jar是在Android的依赖和路径是正确的。

I have restarted Eclipse multiple times and cleaned all projects. Gridlayout_v7.jar is under Android Dependencies and the path is correct.

我应该怎么做来修复项目的配置,以便android.support.v7.widget.GridLayout可以用吗?

What should I do to repair the configuration of the project so that android.support.v7.widget.GridLayout can be used?

电脑操作系统:Windows 8专业版

Computer OS: Windows 8 Pro

CPU:英特尔酷睿i5

CPU: Intel i5

的Eclipse(版本:朱诺服务版本2):建立ID:20121004-1855

Eclipse (Version: Juno Service Release 2): Build id: 20121004-1855

推荐答案

显然,你没有包含了Android库项目网​​格布局从您的项目中引用,也许是因为老现在参照打破。

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

这篇关于错误:"下面的类不能被找到: - android.support.v7.widget.GridLayout"升级Android SDK工具后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆