No Retrofit annotation found. (parameter #1)

前端 未结 14 1873
长发绾君心
长发绾君心 2020-12-09 00:50

I want get RSS code from a URL with Retrofit and if I enter url staticly in the get annotation everything is OK but with dynamic url I get an error.

My

相关标签:
14条回答
  • 2020-12-09 01:21

    In my case I used Retrofit 2.5.0 instead of the newest version. Update to 2.9.0 and thing went fine again.

    0 讨论(0)
  • 2020-12-09 01:22

    Addition to Destil's answer

    Make sure the parameters you pass to the retrofit interface methods(i.e callbacks, headers, body ) are only belongs to retrofit package. e.g. Not custom callbacks that you want on your own.

    0 讨论(0)
提交回复
热议问题