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 :)
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.