17

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?

Cœur
  • 32,421
  • 21
  • 173
  • 232

3 Answers3

11

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.

Community
  • 1
  • 1
gnat
  • 6,199
  • 101
  • 49
  • 71
1

I tried multiple solutions for this some of those are given below

  1. Add below code in Android/app/build.gradle file

    configurations {
     compile.exclude group: 'com.google.zxing'
    }
    
  2. Add android:usesCleartextTraffic="true" to file path android/app/src/main/AndroidManifest.xml it should look like this:

     <application
            android:name="io.flutter.app.FlutterApplication"
            android:label="app_name"
            android:icon="@mipmap/ic_launcher"
            android:usesCleartextTraffic="true">
    
Paresh Mangukiya
  • 14,668
  • 7
  • 90
  • 90
0

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.

jeanluc
  • 1,439
  • 1
  • 10
  • 24
  • Hi, this answer lacks details. Please have a look at : https://stackoverflow.com/help/how-to-answer and edit your post accordingly. – Rishabh Kumar Feb 24 '21 at 04:32