【问题标题】:Ant build: Some input files use or override a deprecated APIAnt 构建:一些输入文件使用或覆盖了已弃用的 API
【发布时间】:2015-11-26 10:32:24
【问题描述】:

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

【问题讨论】:

    标签: java android ant build release


    【解决方案1】:

    转换

    bundle.putLong(key, (long) value);
    

    bundle.putLong(key, (Long) value);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-15
      • 1970-01-01
      • 2012-03-04
      • 1970-01-01
      • 2021-12-11
      • 2020-04-19
      • 2021-04-27
      相关资源
      最近更新 更多