Hi All,
I am trying to android build from jenkins server.
I have set the env varibles as below in /etc/profile and created a local.properties file the workspace .
export ANDROID_HOME="/root/opt/android-sdk-linux"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"
In local.properties file :
sdk.dir=/root/opt/android-sdk-linux
I can able to build from linux command line as ROOT user but not other users. And even cant able to build from jenkins server .
I configure env variables in jenkins configuration too.
It is not able to pick the sdk installation folder.
Error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> The SDK directory '/root/opt/android-sdk-linux' does not exist.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Please help me on this ..
Thanks in advance .
Regards,
Pradeep