简体   繁体   English

出现导入错误是什么意思?

[英]what does it mean when there is import error?

I am using a code sample that suppose to be working, but I keep get an error with those 3 import statement. 我使用的代码示例似乎可以正常工作,但是这3个import语句始终出现错误。

import com.amazonaws.services.s3.transfer.internal.MultipartUploadCallable;
import com.amazonaws.services.s3.transfer.internal.PutObjectCallable;
import com.amazonaws.services.s3.transfer.internal.TransferStateUpdatingCallable;

the error message says : The import com.amazonaws.services.s3.transfer.internal.MultipartUploadCallable cannot be resolved 错误消息显示:无法解析导入com.amazonaws.services.s3.transfer.internal.MultipartUploadCallable

why is that happening and how can I solve it ? 为什么会发生这种情况,我该如何解决?

Please add jars that contain this classes. 请添加包含此类的罐子。 This will always solve your problem. 这将永远解决您的问题。

This means that implementations of referenced classes cannot be found in classpath. 这意味着在类路径中找不到引用类的实现。 Since you are using amazonaws you should add appropriate library to your project's dependencies. 由于您正在使用amazonaws ,因此应将适当的库添加到项目的依赖项中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM