源值为1.5已过时,会在将来的版本中删除 [英] source value 1.5 is obsolete and will be removed in a future release

查看:1453
本文介绍了源值为1.5已过时,会在将来的版本中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何prevent从产生的停止生成过程中的错误有以下两个警告?

  -compile:
    [javac的] 77编译源文件/Users/andev/Workspace/android/products/myproject/1.0/Facebook/bin/classes
    [javac的]警告:[选项]源值为1.5已过时,会在将来的版本中删除
    [javac的]警告:[选项]目标值1.5已过时,会在将来的版本中删除
    [javac的]警告:[options]为坐席约过时的选项preSS警告,使用-Xlint:-options。
    [javac的]错误:找到警告和-Werror规定
    [javac的] 1个错误
    [javac的] 3警告


解决方案

要能够建立,我创建Facebook的项目中的文件 ant.properties (第一个项目被编译)与内容物:

  java.compilerargs = -Xlint:-options

How do I prevent the two warnings below from generating an error that stops the build process ?

-compile:
    [javac] Compiling 77 source files to /Users/andev/Workspace/android/products/myproject/1.0/Facebook/bin/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] error: warnings found and -Werror specified
    [javac] 1 error
    [javac] 3 warnings

解决方案

To be able to build, I created a file ant.properties in the facebook project (first project that is compiled) with the contents :

java.compilerargs=-Xlint:-options

这篇关于源值为1.5已过时,会在将来的版本中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆