The following error occurred using the Android Studio Packaging application:
Note: Some of the input files use or overwrite outdated APIs.
Note: For more information, please recompile using-xlint:deprecation.
Note: Some input files use an unchecked or unsafe operation.
Note: For more information, please recompile using-xlint:unchecked.
After compiling to tell me this few error hints, let me love why, so Google got the answer:
Address
I pasted this piece of code here:
allprojects { gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" } }}
Recompile to get the following error message:
sers/guoyoujin/androidstudioprojects/gz/app/src/main/java/Com/guoyoujin/gz/gz/net/httpconnect. Java:83: Warning: [deprecation] Org. Apache. httpThe. Basichttpparams in the params is obsolete basichttpparams httpparams = new Basichttpparams (); ^/users/guoyoujin/androidstudioprojects/gz/app/src/main/java/Com/guoyoujin/gz/gz/net/httpconnect. Java:85: Warning: [deprecation] Org. Apache. http.conn.params" connmanagerparams obsolete Connmanagerparams.settimeout (httpparams, Globecom/guoyoujin/gz/gz/net/httpconnect.java: 86: Warning: [deprecation] Org.apache.http.conn.setmaxconnectionsperroute ( Httpparams, New Connperroutebean (15)) ^ Note: Some input files also use or overwrite obsolete Api. 100 warnings
Well, sure enough, the error is very detailed, then you can modify these warnings, if you have the time
"Go" Android appears note: Some of the input files use or overwrite outdated APIs. Note: For more information, please recompile using-xlint:deprecation. Note: Some input files use an unchecked or unsafe operation. Note