java.lang.IllegalArgumentException: RetrofitInterface.getUser: Must have return type or Callback as last argument, not both.

Stack Overflow | Qasim Khokhar | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Retrofit Exception During Execution

    Stack Overflow | 2 years ago | Qasim Khokhar
    java.lang.IllegalArgumentException: RetrofitInterface.getUser: Must have return type or Callback as last argument, not both.
  2. 0

    Retrofit 1.9 Error on Callback

    Stack Overflow | 4 months ago | Keeano
    java.lang.IllegalArgumentException: IMyClient.getUser: Must have return type or Callback as last argument, not both.
  3. 0

    Retrofit 1.3.0 doesn't work after obfuscation using ProGuard

    GitHub | 3 years ago | tshevchuk
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testobfuscation/com.example.testobfuscation.MainActivity}: java.lang.IllegalArgumentException: Last parameter of getPuzzleComments must be of type Callback<X> or Callback<? super X>. Found: interface retrofit.Callback
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    cryptic error if you forgot to mark an outgoing parameter as @Body

    GitHub | 3 years ago | kenyee
    java.lang.IllegalArgumentException: Method uploadDoc contains multiple HTTP methods. Found: PUT and PUT
  6. 0

    url == null exception

    GitHub | 3 years ago | julio-cotta-edx
    java.lang.IllegalArgumentException: url == null

    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

      RetrofitInterface.getUser: Must have return type or Callback as last argument, not both.

      at retrofit.RestMethodInfo.methodError()
    2. Retrofit
      RestAdapter$RestHandler.invoke
      1. retrofit.RestMethodInfo.methodError(RestMethodInfo.java:107)
      2. retrofit.RestMethodInfo.parseResponseType(RestMethodInfo.java:267)
      3. retrofit.RestMethodInfo.<init>(RestMethodInfo.java:97)
      4. retrofit.RestAdapter.getMethodInfo(RestAdapter.java:213)
      5. retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:236)
      5 frames
    3. com.sun.proxy
      $Proxy0.getUser
      1. com.sun.proxy.$Proxy0.getUser(Unknown Source)
      1 frame
    4. com.company
      Main.main
      1. com.company.Main.main(Main.java:19)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    6. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      1 frame