Reputation: 11
I am building an android application in jenkins. but it's saying The SDK directory ' /var/lib/jenkins/android-sdk' does not exist.
I have set the android sdk path My andoid sdk configuration in jenkins
Kindly help me out. Thnaks in advance :)
Upvotes: 0
Views: 260
Reputation: 51
You can follow below steps to achieve this.
Go to Jenkins > Manage Jenkins > Configure System
Check "Environment variables"
add name: ANDROID_HOME, value -> your complete Android SDK dir path
click "add"
SCROLL DOWN CLICK SAVE
or
I fixed it using:
Copy your Android folder \Users{yourUser}\Library\Android\
Paste in the folder \Users\Shared\Jenkins\Library
Go to Jenkins -> Manage Jenkins -> Configure System
Check "Environment variables"
add name: ANDROID_HOME, value -> \Users\Shared\Jenkins\Library\Android\sdk
Add
Save
Upvotes: 1