1. Are you ready for the Galaxy S20? Here is everything we know so far!

Fatal Exception Using external JAR File

Discussion in 'Android Development' started by Michi132987, Mar 28, 2020.

  1. Michi132987

    Michi132987 Lurker
    Thread Starter

    Hi,

    I am new to android development and tried to use the okhttp3 lib in order to perform a HTTP get command with an app. After importing the JAR according to online tutorials the Compiler throes no mistakes but after installing the app to my device I get an Exception thrown after calling the Constructor 'OkHttpClient()'.

    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.httptest, PID: 20614
    java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/markers/KMappedMarker;
    at okhttp3.internal.Util.immutableListOf(Unknown Source:0)
    at okhttp3.OkHttpClient.<clinit>(OkHttpClient.kt:1029)
    at com.example.http_test.MainActivity.<init>(MainActivity.java:23)
    ........​

    Someone has an idea what I did wrong?
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Fatal Exception Using
  1. ilyas khan
    Replies:
    2
    Views:
    177
  2. Dngrsone
    Replies:
    32
    Views:
    806
  3. Umang Upadhyay
    Replies:
    1
    Views:
    955
  4. DavidWooderson
    Replies:
    1
    Views:
    859
  5. Francesco10
    Replies:
    0
    Views:
    900
  6. gossmarian
    Replies:
    0
    Views:
    794
  7. Dngrsone
    Replies:
    206
    Views:
    9,300
  8. flamefoxbob
    Replies:
    2
    Views:
    1,630
  9. Ashish87
    Replies:
    0
    Views:
    1,619
  10. Minuth
    Replies:
    1
    Views:
    751

Share This Page

Loading...