【发布时间】:2014-12-06 21:28:18
【问题描述】:
在我使用的library中有重载方法:
put(String key, Integer value)put(String key, Long value)put(String key, Double value)put(String key, Float value)
我正在尝试将 String 和 Int 值放在那里,但出现以下错误:
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)
在这种情况下我该怎么办?
【问题讨论】:
标签: android scala types casting type-conversion