Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid emulator plugin doesn't find the android SDK
    primarykey
    data
    text
    <p>I'm trying to configure <a href="https://wiki.jenkins-ci.org/display/JENKINS/Android+Emulator+Plugin" rel="nofollow">android emulator plugin</a> for Jenkins and I'm having a hard time trying to figure out why the plugin can't find the Android SDK.</p> <p>First, after cloning the project Jenkins always output:</p> <pre><code>[android] No Android SDK found; let's install it automatically... [android] Going to install required Android SDK components... [android] Installing the 'platform-tool,tool' SDK component(s)... $ /var/lib/jenkins/tools/android-sdk/tools/android update sdk -u -a -t platform-tool,tool </code></pre> <p>After that, it fails because the plugin probably doesn't know how to answer the license agreement.</p> <pre><code>Do you accept the license 'android-sdk-license-bcbbd656' [y/n]: Unknown response ''. Do you accept the license 'android-sdk-license-bcbbd656' [y/n]: Unknown response ''. Max number of retries exceeded. Rejecting 'android-sdk-license-bcbbd656' </code></pre> <p>So I just replicate the command my self and installed all the stuff. The output remains the same, No Android SDK found. I tried to chown and chmod 755 the folder to be sure that Jenkins can access it and again it failed.</p> <p>I checked in the Jenkins configuration that I can explicit tell Jenkins where the android SDK is but know it fails with another error: I filled the field <strong>Android SDK root</strong> with <strong>/var/lib/jenkins/tools/android-sdk/</strong> but it shows <strong>Required tools not found (adb etc.)</strong>.</p> <p>This is my <strong>ls -la</strong> at <strong>/var/lib/jenkins/tools/android-sdk</strong></p> <pre><code>drwxr-xr-x 9 jenkins jenkins 4096 May 16 11:12 . drwxr-xr-x 5 jenkins jenkins 4096 May 15 20:20 .. -rwxr-xr-x 1 jenkins jenkins 6 May 16 12:36 .jenkins-install-info -rwxr-xr-x 1 jenkins jenkins 0 Dec 20 20:00 .timestamp -rwxr-xr-x 1 jenkins jenkins 1158 Dec 6 16:50 SDK Readme.txt drwxr-xr-x 2 jenkins jenkins 4096 May 15 19:45 add-ons drwxr-xr-x 3 jenkins jenkins 4096 May 16 09:02 build-tools drwxr-xr-x 19 jenkins jenkins 4096 May 16 09:49 docs drwxr-xr-x 3 jenkins jenkins 4096 May 16 11:12 platform-tools drwxr-xr-x 8 jenkins jenkins 4096 May 16 10:43 platforms drwxr-xr-x 2 jenkins jenkins 4096 May 16 11:12 temp drwxr-xr-x 9 jenkins jenkins 4096 May 16 11:11 tools </code></pre> <p>and this is the <strong>ls -la</strong> at <strong>/var/lib/jenkins/tools/android-sdk/platform-tools</strong></p> <pre><code>drwxr-xr-x 3 jenkins jenkins 4096 May 16 11:12 . drwxr-xr-x 9 jenkins jenkins 4096 May 16 11:12 .. -rwxr-xr-x 1 jenkins jenkins 467531 May 16 11:12 NOTICE.txt -rwxr-xr-x 1 jenkins jenkins 1226659 May 16 11:12 adb drwxr-xr-x 2 jenkins jenkins 4096 May 16 11:12 api -rwxr-xr-x 1 jenkins jenkins 176550 May 16 11:12 fastboot -rwxr-xr-x 1 jenkins jenkins 16644 May 16 11:12 source.properties </code></pre> <p>which clearly shows that adb is there and running as the command above shows:</p> <pre><code>sudo -u jenkins ./adb version Android Debug Bridge version 1.0.31 </code></pre> <p>Any help with this problem will be really appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload