Sivam Kanagasabapathy
Sivam Kanagasabapathy

Reputation: 23

AWS SDK Android file uploading failed on S3 Bucket

I am trying to use the AWS SDK for android. I tired to get the sample "S3_uploader" working but when i run it i get a error .i have include the jar by adding it to the path and by copying and pasting the jar file into the libs folder. Nothing works. can anyone please help me?

Upvotes: 1

Views: 909

Answers (3)

user3311841
user3311841

Reputation: 1

I had this problem when using "libs\aws-android-sdk-1.7.1.1-debug.jar" but when using "aws-android-sdk-1.7.1.1-core.jar" + other service JAR then it works fine, for more info about aws-jars:

https://mobile.awsblog.com/post/Tx3JXN6FGS5Y2L1/Understanding-the-JARs-in-the-AWS-SDK-for-Android

Upvotes: 0

Bob Kinney
Bob Kinney

Reputation: 9040

You may consider looking at this post on our Mobile Development blog for how to use the samples with the latest versions of Eclipse with ADT.

Note, you may need to expand the memory available to eclipse. The Eclipse wiki has directions for increasing the heap size available to Eclipse to overcome memory related errors.

Upvotes: 2

Rahin
Rahin

Reputation: 943

In addition to adding the jar file to the libs folder, you also need to include it in your Java Build Path. Assuming that you're using eclipse, this is how you would add it:

  1. Right click on project in the project explorer, and click on properties
  2. On the left menu, click on Java Build Path and then click the button "Add Jars"
  3. Select the jar you added in the libs folder.

After pressing ok, you should try rebuilding the project and it shouldn't give the NoClassDefFoundError

Upvotes: 2

Related Questions