Solved: No value has been specified for property ‘lintClassPath’

While I was developing small code for checking device information, after I edited our sample code downloaded from github and tried to compile app from command line as shown below, I encountered an error as

[bash] $ ./gradlew clean build > Task :app:lint FAILED FAILURE: Build failed with an exception. * What went wrong: A problem was found with the configuration of task ‘:app:lint’. > No value has been specified for property ‘lintClassPath’. * Try: Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights. * Get more help at BUILD FAILED in 0s 3 actionable tasks: 1 executed, 2 up-to-date [/bash]

Solution Which Worked :

As we can see above there is no clear information regarding what went wrong in the compilation, hence last option I thought was to may be some version mismatch hence let Android Studio do some auto updates and we can try how it goes.

Hence, as I opened the project from Android Studio, Studio created following two files automatically,

new file:   .idea/codeStyles/Project.xml
new file:   .idea/vcs.xml

And after just opening from Android Studio and then try recompile from command line.. it worked without any issues.

Leave a Comment