我安装了Java版的AWS工具包
并将其连接到我的项目中的buildpath,尝试上传文件到S3
。
File fileOfImages = new File("/sdcard/Save Image Tutorial");
AmazonS3 s3client = new AmazonS3Client(new ProfileCredentialsProvider());
s3client.putObject(new PutObjectRequest("rosh-haayin-images", "images",fileOfImages));
但我遇到了以下错误:
ClassNotFoundException: com.amazonaws.auth.AWSCredentialsProvider
有人能解释一下为什么会出现这个异常吗?