Some input files use or override a deprecated API
Asked Answered
R

3

29

I just downloaded the new LWUIT 1.5 and when I compiled my project then I saw in the output trace these lines:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

I use Sun Java ME SDK 3.0

So how to make the -Xlint recompilation?

Retake answered 19/9, 2011 at 12:8 Comment(5)
Are you using Obfuscation in your project?Sectionalize
@Sectionalize How to know if I use Obfuscation in my project ?Retake
Open project properties and look on obfuscation.Sectionalize
The obfuscation level is Off.Retake
possible duplicate of Compiling issue in NetBeansRemission
R
14

according to comments in older SO question, "-Xlint in NetBeans is set under project properties, run or compile options" - see details here: Compiling issue in NetBeans

There is also a thread at Netbeans forums. They say,

Go to the Compiling section of the Project Properties. These is a check box labeled "Report use of deprecated API". Checking that will turn on -Xlint.

Remission answered 19/9, 2011 at 16:11 Comment(0)
L
4

Implement this code below and outside of compileOptions bracket located in the build.gradle (Module) and implement this code. This should resolve the issue.

    allprojects {
        tasks.withType(JavaCompile){
            options.compilerArgs <<"-Xlint:deprecation"
        }
    }
Latchet answered 8/12, 2022 at 14:33 Comment(0)
D
-5

Your error will be solved if you replace the deprecated functions. IDEs like Android Studio will show them with squiggly lines, some IDEs will suggest replacements you can easily use.

Dike answered 24/2, 2021 at 0:3 Comment(1)
Hi, this answer lacks details. Please have a look at : stackoverflow.com/help/how-to-answer and edit your post accordingly.Squires

© 2022 - 2024 — McMap. All rights reserved.