AWS SDK NoClassDefFoundError: com.amazonaws.services.s3.AmazonS3Client

断了今生、忘了曾经 提交于 2019-11-29 17:19:41

Your code gives NoClassDefFoundError because you didnt add the sdk's library to your project. Here is how you can do it

  • Right click on your project name -> New -> Folder and name it "libs" (without "s)
  • You should add "aws-android-sdk-X.X.X-debug.jar" in this library folder
  • Right click on your project name -> Properties -> select Java Build Path from left -> Click Add Jars -> navigate to your projects libs which we created.
  • select "aws-android-sdk-X.X.X-debug.jar"
  • Click Ok and you are done.

Hope this helps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!