!! Android emulator plugin can't find my SDK

432 views
Skip to first unread message

Olexandr Matuzenko

unread,
Feb 3, 2015, 3:01:46 PM2/3/15
to jenkins...@googlegroups.com
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)

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.

Need advice from more experienced collegues how I can solve it.

Thanks, Alex

Christopher Orr

unread,
Feb 3, 2015, 6:02:21 PM2/3/15
to jenkins...@googlegroups.com
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

Olexandr Matuzenko

unread,
Feb 4, 2015, 12:01:59 AM2/4/15
to jenkins...@googlegroups.com
Thanks for prompt reply. 

The only thing helped me is to remove completely Jenkins and install it via brew install jenkins and make all steps from this tutorial

Now Android sdk is available, but before that chmod command didn't have any effect.

Unfortunately I don't know what was a problem, but now it works!
Reply all
Reply to author
Forward
0 new messages