Compiler options -Xlint:deprecation

Where do I add the -Xlint:deprecation in the build settings? I am trying to upgrade an old project and having issues with in app billing compiling, the final warnig is suggesting I recompile with -X for details but I have added it to ant options and other place and it makes no difference.

Thanks
Roger

hi FootyDirector, seems some of JAVA API is out of date in your project. maybe you can try with gradle to compile your project and add the following congfig in your build.gradle:

allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << “-Xlint:unchecked” << “-Xlint:deprecation”
}
}
}

Thanks, but my project uses Ant build, its not so straight forward. Is there an easy way to upgrade to Gradle within VS? Its a large project and rebuilding it would take a long time.

hi FootyDirector, I suggest you try to add " " in your build.xml. you can take the following for reference:




or if it is still not working, could you please attach your log and settings.

Finally sorted it, adding this just before importing the build file section in build.xml :-

Many thanks for your assistance.