java.lang.IllegalArgumentException: Unable to create call adapter for class example.Simple for method SimpleService.getSimple

Stack Overflow | rmuller | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Unable to create call adapter for class example.Simple

    Stack Overflow | 2 years ago | rmuller
    java.lang.IllegalArgumentException: Unable to create call adapter for class example.Simple for method SimpleService.getSimple
  2. 0

    Android Retrofit2 error @Url

    Stack Overflow | 1 year ago | Edison zhao
    java.lang.IllegalArgumentException: HTTP method annotation is required (e.g., @GET, @POST, etc.). for method ApiManagerService.queryCarInfo

  1. brunosatriani 12 times, last 9 months ago
  2. zildjiandm 11 times, last 12 months ago
5 unregistered visitors

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Unable to create call adapter for class example.Simple for method SimpleService.getSimple

    at retrofit.Utils.methodError()
  2. Retrofit
    Retrofit$1.invoke
    1. retrofit.Utils.methodError(Utils.java:201)
    2. retrofit.MethodHandler.createCallAdapter(MethodHandler.java:51)
    3. retrofit.MethodHandler.create(MethodHandler.java:30)
    4. retrofit.Retrofit.loadMethodHandler(Retrofit.java:138)
    5. retrofit.Retrofit$1.invoke(Retrofit.java:127)
    5 frames
  3. com.sun.proxy
    $Proxy0.getSimple
    1. com.sun.proxy.$Proxy0.getSimple(Unknown Source)
    1 frame