jenkins android can't find sdkmanager.jar

I’m running jenkins on mac OS. I have ant build file which tries to execute in one of targets. I have correct path as I’ve included android sdk tools and platform-tools folders to it but still I’m getting “android can’t find sdkmanager,jar” error.

If I move described jar from lib folder to tools folder I’m getting some other similar error related to another jar, so it seems it just can’t get this jar from lib folder…Please help.

  • jenkins on windows | change .m2 path
  • Jetty/winstone connector configuration in Jenkins
  • Xcode 7.3.1 UITests Code Coverage always at 0%
  • Configure default permissions for newly registered Jenkins users
  • Can I use git command in delivery pipeline if git is installed in different path on jenkins agent than on master
  • sparse checkout gives me an error stderr: fatal: Not a valid object name HEAD
  • Jenkins SCM Sync Configuration Plugin In Docker Won't Talk to Github
  • Jenkins Integration with Github
  • 2 Solutions collect form web for “jenkins android can't find sdkmanager.jar”

    I solved my problem. I had correct path and sdk installation directory. Problem was that my Jenkins was running under another user and couldn’t locate directory with android lib because they where denied for it. So problem was in sdk folder permissions.
    I’ve just ran chmod -R 0755 mySdkDirLocation from console under bash and became the happiest developer on earth for the moment:)

    After I ran chmod -R 0755 mySdkDirLocation. The error “android can’t find sdkmanager.jar” went away. But when I ran android update sdk -u, I cannot install archives. So I ran chmod 777 mySdkDirLocation. Then the downloading worked.

    Git Baby is a git and github fan, let's start git clone.