Hi,
I’m unable to do a single build. My builds always fail from the very start with permission denied.
The stack you’re using
I try to use an Android stack.
The exact error message you are getting
"./gradlew: Permission denied Action failed: ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies"
Which troubleshooting steps you’ve already taken
I tried to give gradlew 777 (rwxrwxrwx) permission.
Any recent changes either in the codebase or the stack
It never built on circleCI succesfully
What happens when you run the tests locally
I can build the app locally perfectly
What is supposed to happen when your build runs
It should be successfully built.
The build URL if the project is public
https://github.com/onionandpixel/circletest
Can you help me what should I do in order to successfully build my project.
archit
January 29, 2016, 6:35pm
2
add chmod +x before executing gradlew in your circle.yml…that should do the trick…incase that doesn’t solve the problem for you share your circle.yml file.
hope this helps
archit
January 29, 2016, 6:39pm
3
okay I just realised that you had shared your github project
change the dependencies part of your circle.yml to the following…
dependencies:
override:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-21.1.2,android-21,extra-google-m2repository,extra-google-google_play_services,extra-android-support
- chmod +x gradlew
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
1 Like
Thanks that was the trick
HI Archit,
My build is failing when I am using the chmod commad as suggested by you and I am getting the error as below:
chmod: cannot access ‘./gradlew’: No such file or directory
Could you please suggest where I could be going wrong.
Thanks.
system
Closed
September 4, 2018, 1:36pm
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.