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;
Someone has an idea what I did wrong?
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)
........
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?