Reputation: 23
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
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
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
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:
After pressing ok, you should try rebuilding the project and it shouldn't give the NoClassDefFoundError
Upvotes: 2