i am trying to implement amazon's mechanical turk into my android app. I have followed the instructions: http://ift.tt/1LSuZ9v but when i am specifying the third party .jar files, it gives me
Error:Gradle: Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
I have tried taking out every combination of .jar files and found out that jaxrpc.jar is the file causing this error. Without this file, the error when running the project is:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException at com.example.mturk.HomeworkRequest.(HomeworkRequest.java:20) at com.example.mturk.HomeworkRequest.main(HomeworkRequest.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at ...
where line 20 points to:
service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
and line 39 points to:
HomeworkRequest app = new HomeworkRequest();
I have tried enabling multiDex and looked around but couldn't find any solution. Any help would be greatly appreciated, i have been stuck on this problem for a few days now.
Thanks!
Aucun commentaire:
Enregistrer un commentaire