在使用retrofit请求接口时报错了,参数:Map<String,Any>

Parameter type must not include a type variable or wildcard: java.util.Map<java.lang.String, ?>

问题是在值类型为Any,在JAVA里这个值就Object,查在kotlin里就变成*号了,Retrofit不能识别。
只需要添加@JvmSuppressWildcards接口即可

@JvmSuppressWildcards
internal interface WebService {
    ...
}