Skip to content

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

@jikun2008

Description

@jikun2008
@POST("/driver/login")
suspend fun login(@Body param:Map<String,Any>): Result<String>

ex:
{ var param= mapOf( "password" to "123123", "phone" to "123456789") service.login(param) }

use Map<String,Any> when use it case Throwable
throwabel is < java.lang.IllegalArgumentException: Parameter type must not include a type variable or wildcard: java.util.Map<java.lang.String, ?> (parameter #1) >

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions