尝试使用命令提示符 ant 脚本构建 Android 应用程序时。
ant release
出现以下错误..我确信这与使用旧的已弃用的 api 有关。
facebook\internal\Utility.java:538: error: incompatible types: Object cannot
be converted to long
[javac] bundle.putLong(key, (long) value);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors
[javac] 3 warnings</i>
转换
bundle.putLong(key, (long) value);
至
bundle.putLong(key, (Long) value);
我是一名优秀的程序员,十分优秀!