Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to build android app using bitbucket pipeline

Piyush Parmar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 25, 2023
Error

 ./gradlew lint
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain

1 answer

1 accepted

2 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 27, 2023

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

Piyush Parmar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 29, 2023

Thank you, worked for me 

Like Theodora Boudale likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events