google app engine - How to setup an Android project using GAE/J and AWS S3 jars? -


i've been dealing problem today , still can't find solution. have app engine connected android project makes calls gae datastore (via endpoints) , aws s3 using amazons3client. i'm point have upload photo file camera s3 , respective meta-data datastore entity (photo.java). unfortunately, though think code right, can't run sample because there multiple files define class collission between aws-android-sdk-x.x.x-debug.jar , 1 of gae client jars.

here console log:

[2013-10-06 20:15:15 - dex loader] unable execute dex: multiple dex files define     lorg/codehaus/jackson/base64variant; [2013-10-06 20:15:15 - moodstream_final] conversion dalvik format failed: unable execute dex: multiple dex files define lorg/codehaus/jackson/base64variant;     

what can in case? don't want mess default jars imported gae , don't know import aws libs avoid collission.

edit

i tried importing aws-android-sdk-x.x.x-s3.jar instead of whole debug jar. program runs, when time create amazons3client following error:

10-07 02:07:06.286: e/androidruntime(1917): fatal exception: main 10-07 02:07:06.286: e/androidruntime(1917): java.lang.noclassdeffounderror: com.amazonaws.services.s3.amazons3client 10-07 02:07:06.286: e/androidruntime(1917):     @ com.moodstream.activity.createphotoactivity.<init>(createphotoactivity.java:42) 10-07 02:07:06.286: e/androidruntime(1917):     @ java.lang.class.newinstanceimpl(native method) 10-07 02:07:06.286: e/androidruntime(1917):     @ java.lang.class.newinstance(class.java:1319) 10-07 02:07:06.286: e/androidruntime(1917):     @ android.app.instrumentation.newactivity(instrumentation.java:1054) 10-07 02:07:06.286: e/androidruntime(1917):     @ android.app.activitythread.performlaunchactivity(activitythread.java:2097) 10-07 02:07:06.286: e/androidruntime(1917):     @ android.app.activitythread.handlelaunchactivity(activitythread.java:2230) 10-07 02:07:06.286: e/androidruntime(1917):     @ android.app.activitythread.access$600(activitythread.java:141) 10-07 02:07:06.286: e/androidruntime(1917):     @ android.app.activitythread$h.handlemessage(activitythread.java:1234) 10-07 02:07:06.286: e/androidruntime(1917):     @ android.os.handler.dispatchmessage(handler.java:99) 10-07 02:07:06.286: e/androidruntime(1917):     @ android.os.looper.loop(looper.java:137) 10-07 02:07:06.286: e/androidruntime(1917):     @ android.app.activitythread.main(activitythread.java:5041) 10-07 02:07:06.286: e/androidruntime(1917):     @ java.lang.reflect.method.invokenative(native method) 10-07 02:07:06.286: e/androidruntime(1917):     @ java.lang.reflect.method.invoke(method.java:511) 10-07 02:07:06.286: e/androidruntime(1917):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:793) 10-07 02:07:06.286: e/androidruntime(1917):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:560) 10-07 02:07:06.286: e/androidruntime(1917):     @ dalvik.system.nativestart.main(native method) 

i don't because amazons3client in s3 jar well. therefore, still stuck :s.

problem solved!! managed fix dual file collission deleting jackson-core-asl-1.9.11.jar libs folder.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -