<span><strong>Error</strong><br><br> ./gradlew lint</span>
<span>Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain</span>
<span>Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain</span>
Hi Piyush and welcome to the community!
The error indicates that the build cannot find a dependency it needs (gradle wrapper).
A common reason for this error is that the .gitignore file in the repo may be preventing the wrapper jar file from being committed. Can you please check if the .jar files are being excluded in the .gitignore of the repo?
If this is the case, you can add an exception in the .gitignore for this file, so that it gets committed to the repo, for example:
*.jar !gradle/wrapper/gradle-wrapper.jar
Kind regards,Theodora
Thank you, worked for me
It looks like you're new here. Sign in or register to get started.