No Retrofit annotation found. (parameter #1)

前端 未结 14 1910
长发绾君心
长发绾君心 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条回答
  •  猫巷女王i
    2020-12-09 01:16

    My problem was that I am using Kotlin coroutines and used 'suspend' in the Retrofit GET method. Just remove it and everything works fine.

提交回复
热议问题