找不到班级

2023-06-26Java开发问题
0

本文介绍了找不到班级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我的项目运行良好,直到我点击Help->Check for updates"并在 Android SDK Manager 中安装了一些组件.

My project ran well until I clicked "Help->Check for updates" and installed some components in Android SDK Manager.

总的来说,我的项目中没有宣布错误.但是当我运行我的项目时,它会导致错误

In general, there is no error announced in my project. But when I run my project, it causes an error

找不到类 com.androiquery.AQuery

could not find class com.androiquery.AQuery

我再次检查,我仍然可以在 libs 文件夹中看到 AQuery 库以及对该库的引用.

I checked out again, I still can see the AQuery library in libs folder and also the reference to this library.

我还尝试清理项目及其依赖项,相当的eclipse,重新启动计算机,但它没有解决.你知道怎么解决吗?

I also tried to clean the project and its dependencies, quite the eclipse, restart the computer, but it doesn't solve. Do you know how to fix it?

推荐答案

我遇到了和你一样的问题,已经用这个方法解决了.

I have had the same issue as you and have fixed it this way.

转到属性 > Java构建路径 > 排序和导出并选中Android私有库框.

Go to Properties > Java Build Path > Order and Export and check the Android Private Libraries box.

请看下面的截图:

这篇关于找不到班级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

如何在java中找出依赖于语言环境的文本方向?
How to find out locale-dependent text orientation in java?(如何在java中找出依赖于语言环境的文本方向?)...
2024-08-25 Java开发问题
24

Eclipse 在尝试启动 Android 应用程序时卡住了
Eclipse gets stuck when trying to launch Android app(Eclipse 在尝试启动 Android 应用程序时卡住了)...
2024-08-25 Java开发问题
14

Eclipse:无法初始化监视器线程:无法建立环回连接
Eclipse: Failed to initialize Monitor Thread: Unable to establish loopback connection(Eclipse:无法初始化监视器线程:无法建立环回连接)...
2024-08-25 Java开发问题
4

Eclipse-找不到JDK
Eclipse- JDK not found(Eclipse-找不到JDK)...
2024-08-25 Java开发问题
6

错误:CreateProcess 错误=216,此版本的 %1
Error:CreateProcess error=216, This version of %1(错误:CreateProcess 错误=216,此版本的 %1)...
2024-08-25 Java开发问题
9