gpt4 book ai didi

java - Ant 构建 : Some input files use or override a deprecated API

转载 作者:太空宇宙 更新时间:2023-11-04 13:29:31 26 4
gpt4 key购买 nike

尝试使用命令提示符 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);

关于java - Ant 构建 : Some input files use or override a deprecated API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32327360/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com