Failure on build with Gradle on command line with an android studio project : Xlint error -
when try build android project gradle command :
> gradlew clean build assemblerelease   it gives me error :
note: input files use or override deprecated api.   note: recompile -xlint:deprecation details.   note: input files use unchecked or unsafe operations.   note: recompile -xlint:unchecked details.   i can build project , make apk in studio.
is there way configure gradle make compilation ignoring xlint notifications ?
or, can use other parameters, make release command-line gradle/gradlew ?
it's nice warning not error, see complete lint report can add these lines build.gradle:
allprojects {     tasks.withtype(javacompile) {         options.compilerargs << "-xlint:deprecation"     } }   if want rid of warnings:
- don't use deprecated api
 - use @suppresswarnings("deprecation")
 
Comments
Post a Comment