0

What are the dependencies with proper version number required for implementation of Jira api.

I used:

dependencies {

    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.0.0'
    compile 'com.android.support:design:25.0.0'
   compile files('libs/jira-rest-java-client-api-2.0.0-m19.jar')
    compile files('libs/jira-rest-java-client-core-2.0.0-m19.jar')
    compile group: 'com.atlassian.httpclient', name: 'atlassian-httpclient-api', version: '0.15.1'
    compile 'com.atlassian.httpclient:atlassian-httpclient-apache-httpcomponents:0.3'
}

Still getting error as

java.lang.NoClassDefFoundError: com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory$RestClientApplicationProperties
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:53)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at com.ss.bugreport.MainActivity.Test(MainActivity.java:219)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at com.ss.bugreport.MainActivity.StopBugreportTask(MainActivity.java:204)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at com.ss.bugreport.MainActivity$2.onClick(MainActivity.java:70)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at android.view.View.performClick(View.java:5201)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at android.view.View$PerformClick.run(View.java:21163)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:746)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:148)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5443)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
03-17 17:44:22.869 12311-12311/com.ss.bugreport E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

How to Resolve this one ?

Sukirti Dash
  • 119
  • 1
  • 5
  • Possible duplicate of [How to solve java.lang.NoClassDefFoundError?](http://stackoverflow.com/questions/17973970/how-to-solve-java-lang-noclassdeffounderror) – Bradley Wilson Mar 17 '17 at 12:18
  • how or why is it a duplicate of that? – Saik Caskey Mar 17 '17 at 12:21
  • i didn't understood what do you want to ask @saik Caskey – Sukirti Dash Mar 17 '17 at 12:56
  • He was asking me why I flagged this as a duplicate, and it's because the error in the linked question is the same as the corresponding error in your StackTrace. The answers from that will help you solve your problem. – Bradley Wilson Mar 17 '17 at 13:08
  • I'm still not convince it's a dupe, there are a lot of people complaining about creating the Jira android async client, and what you have linked is a very basic java packaging error. It looks to be as the OP has said- his version could be incorrect, at least, that seems to be responsible for a lot of the issues people post on the subject. I see you're importing these libraries yourself, I would remove them, clean your project and follow the set up instructions again, at least until someone instantly recognises your issue and can help – Saik Caskey Mar 17 '17 at 14:01

0 Answers0