On 02/03/2015 09:01 PM, Olexandr Matuzenko wrote:
I installed Jenkins on my os x / localhost:8080 and uploaded
android-emulator-plugin on it.

But, when I try to set "Android SDK root" in Configure System I'm
getting Does not appear to be a valid directory (path like
/Users/mat/Library/Android/sdk)

Which user is Jenkins running as? Does that user have read and execute permissions on that directory?
Is the build running on a slave, where that directory does not exist?

In any case, it's simpler to not bother setting the "Android SDK root", and allow the plugin to install the SDK for you automatically (if an SDK is not auto-detected, e.g. from ANDROID_HOME or PATH).


Setting ANDROID_HOME to Environment variables doesn't help either.

So I can't build android studio gradle project, because I'm getting A
problem occurred configuring project ':app'.

The SDK directory '/Users/mat/Library/Android/sdk' does not exist.

Since you're using Gradle, I can also recommend the sdk-manager-plugin, which automatically installs all required Android dependencies when you build the project:
https://github.com/JakeWharton/sdk-manager-plugin

Regards,
Chris

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/54D1536C.6050605%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to