问题
使用Retrofit 2 发送post的时候,
override fun onResponse(call: Call<yourclass>?, response: Response<yourclass>?) {
//成功
}
override fun onFailure(call: Call<yourclass>?, t: Throwable?) {
//失败
}
同时 yourclass的实体class也是已经建立完毕的。但是还是会报下面的报错
No type arguments expected for class Call
解决方法
原问题链接:https://stackoverflow.com/questions/51907280/no-type-arguments-expected-for-class-call
方法:替换引用
//import android.telecom.Call
import retrofit2.Call

版权声明:本文为guyang1995原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。