1

可能重复:
Eclipse 感叹号

eclipse 在我的项目旁边显示一个感叹号,该项目的所有类都没有显示错误消息。我清理了项目并再次重新启动,感叹号仍然存在。

问题选项卡输出:

Description Resource    Path    Location    Type 
The container 'Android Dependencies' references non existing library 'D:\workspaceQR 
\QRTest\bin\qrtest.jar' QR01        Build path  Build Path Problem
SupplementalInfoRetriever cannot be resolved    CaptureActivity.java    /QRTest 
/src/com/google/zxing/client/android    line 496    Java Problem
ShareActivity cannot be resolved to a type  CaptureActivity.java    /QRTest/src/com
/google/zxing/client/android    line 299    Java Problem
ResultHandlerFactory cannot be resolved CaptureActivity.java    /QRTest/src/com 
/google/zxing/client/android    line 359    Java Problem
ResultHandler cannot be resolved to a variable  CaptureActivity.java    /QRTest
/src/com/google/zxing/client/android    line 503    Java Problem
ResultHandler cannot be resolved to a type  CaptureActivity.java    /QRTest/src/com  
/google/zxing/client/android    line 359    Java Problem
ResultHandler cannot be resolved to a type  CaptureActivity.java    /QRTest/src/com
/google/zxing/client/android    line 438    Java Problem
ResultHandler cannot be resolved to a type  CaptureActivity.java    /QRTest/src/com  
/google/zxing/client/android    line 521    Java Problem
ResultButtonListener cannot be resolved to a type   CaptureActivity.java    /QRTest  
/src/com/google/zxing/client/android    line 508    Java Problem

而且我没有任何名为 QRTest 的类,但我有 QR01,因此我将 QR01 重命名为 QRTest,但问题仍然存在。

任何想法如何解决这个问题?

4

1 回答 1

1

这通常发生在缺少项目依赖项之一时。请检查 Java 构建路径以查看一切是否正确。您还可以查看“问题”视图。

于 2012-09-11T09:29:25.987 回答