java.lang.IllegalArgumentException: Service methods cannot return void. for method MyApiRequestInterface.getJson

Stack Overflow | Fidelis | 3 months ago
  1. 0

    Android - google direction api using retrofit?

    Stack Overflow | 3 months ago | Fidelis
    java.lang.IllegalArgumentException: Service methods cannot return void. for method MyApiRequestInterface.getJson
  2. 0

    SDK 24 Incompatibility

    GitHub | 5 months ago | arammkhitaryan
    java.lang.IllegalArgumentException: Unable to create call adapter for interface retrofit2.Call for method ......
  3. 0

    GitHub comment 1900#231133825

    GitHub | 5 months ago | JakeWharton
    java.lang.IllegalArgumentException: Unable to create call adapter for interface retrofit2.Call for method ......
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1940#235137135

    GitHub | 5 months ago | gushoubang
    java.lang.IllegalArgumentException: Only one HTTP method is allowed. Found: DELETE and DELETE. for method ApiService.deleteMessage
  6. 0

    GitHub comment 1940#235143985

    GitHub | 5 months ago | JakeWharton
    java.lang.IllegalArgumentException: Only one HTTP method is allowed. Found: DELETE and DELETE. for method ApiService.deleteMessage

  1. Indri Yunita 1 times, last 2 weeks ago
  2. Diogo Jaym 2 times, last 5 months ago
  3. laszlo.kustra 6 times, last 8 months ago
  4. Kawada 3 times, last 6 months ago
  5. Larten 2 times, last 9 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Service methods cannot return void. for method MyApiRequestInterface.getJson

    at retrofit2.ServiceMethod$Builder.methodError()
  2. retrofit2
    Retrofit$1.invoke
    1. retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:720)
    2. retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:711)
    3. retrofit2.ServiceMethod$Builder.createCallAdapter(ServiceMethod.java:228)
    4. retrofit2.ServiceMethod$Builder.build(ServiceMethod.java:160)
    5. retrofit2.Retrofit.loadServiceMethod(Retrofit.java:166)
    6. retrofit2.Retrofit$1.invoke(Retrofit.java:145)
    6 frames
  3. Java RT
    Proxy.invoke
    1. java.lang.reflect.Proxy.invoke(Proxy.java:397)
    1 frame
  4. Unknown
    $Proxy1.getJson
    1. $Proxy1.getJson(Unknown Source)
    1 frame
  5. it.uniba.di
    BusFragment$7$1$2.onMarkerClick
    1. it.uniba.di.ivu.sms16.gruppo26.it.andriasmart.Fragment.BusFragment.using_retrofit(BusFragment.java:369)
    2. it.uniba.di.ivu.sms16.gruppo26.it.andriasmart.Fragment.BusFragment$7$1$2.onMarkerClick(BusFragment.java:323)
    2 frames
  6. com.google.android
    zzp$zza.onTransact
    1. com.google.android.gms.maps.GoogleMap$15.zzd(Unknown Source)
    2. com.google.android.gms.maps.internal.zzp$zza.onTransact(Unknown Source)
    2 frames
  7. Android Platform
    Binder.transact
    1. android.os.Binder.transact(Binder.java:395)
    1 frame