java.lang. RuntimeException No Retrofit annotation found. (parameter #3)

后端 未结 2 865
孤城傲影
孤城傲影 2021-01-13 01:35

I\'m trying to update this RetroFit + Otto tutorial, so my code updated is:

IWeather.java

RetroFit 2.+ doesn\'t allow to return void

2条回答
  •  情书的邮戳
    2021-01-13 02:29

    Try it and modify your retrofit version number to 2.6.0. The use of coroutines in Retrofit 2.6.0 can return a Response object directly. If await() is not needed, Retrofit will automatically call it. This is not applicable when the version is below 2.6.0.

提交回复
热议问题