読者です 読者をやめる 読者になる 読者になる

error: reference to HttpEntity is ambiguous both constructor HttpEntity(T) in HttpEntity and constructor HttpEntity(MultiValueMap<String,String>) in HttpEntity match where T is a type-variable: T extends Object declared in class HttpEntity

Android AndroidAnnotations

Android annotations で下記でエラー。

error: reference to HttpEntity is ambiguous
both constructor HttpEntity(T) in HttpEntity and constructor HttpEntity(MultiValueMap<String,String>) in HttpEntity match
where T is a type-variable:
T extends Object declared in class HttpEntity

https://github.com/excilys/androidannotations/issues/1149

  @Post("/somethings")
  ApiResponse insertSomething(MultiValueMap<String, String> map);

このあたりを

  @Post("/somethings")
  ApiResponse insertSomething(LinkedMultiValueMap<String, String> map);

こっちに変更。