Error
./gradlew lint
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.