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:

  1. don't use deprecated api
  2. use @suppresswarnings("deprecation")

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -