In the library I use there are overloaded methods:
put(String key, Integer value)
put(String key, Long value)
put(String key, Double value)
put(String key, Float value)
I'm trying to put String
with Int
value there but I get the following error:
Error:(41) ambiguous reference to overloaded definition,
both method put in class ContentValues of type (x$1: String, x$2: Double)Unit
and method put in class ContentValues of type (x$1: String, x$2: Float)Unit
match argument types (String,Long)
What can I do in that case?