Meteor 1.2 Android target not found

Hey,

I am currently setting up jenkins on azure with meteor.
I installed all dependencies and did everything described here: https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Linux

But I am running into a problem when I do the following command:

meteor build ../build --server http://my-server:3001 --mobile-settings ./private/mySettings.json --verbose

The output of the verbose reveal this:

Status of the requirements:
✓ Java JDK
✓ Android SDK
✗ Android target: Android SDK not found. Make sure that it is installed. If it
  is not at the default location, set the ANDROID_HOME environment variable.
✓ Gradle

ANDROID_HOME is defined as well as path is extended by “tools” and “platform-tools” folders.
Later in the building process I got the following error:

/

home/tomcat/.meteor/packages/meteor-tool/.1.1.8.2btx7t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:278
						throw(ex);
						      ^
TypeError: Cannot read property 'func' of undefined
    at Object.exception (/tools/utils/buildmessage.js:498:18)
    at /tools/cli/commands.js:947:22
    at /tools/utils/buildmessage.js:268:13
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
    at /tools/utils/buildmessage.js:261:29
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
    at /tools/utils/buildmessage.js:259:18
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
    at /tools/utils/buildmessage.js:250:23
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
    at Object.capture (/tools/utils/buildmessage.js:249:19)
    at Object.main.captureAndExit (/tools/cli/main.js:268:29)
    at buildCommand (/tools/cli/commands.js:940:10)
    at Command.main.registerCommand._.extend.name [as func] (/tools/cli/commands.js:791:12)
    at /tools/cli/main.js:1378:23

Can aynone help or have some advice for me.
I did meteor reset and also meter remove and afterwards add platforms as well.

Most likely you’ll need to install android sdk on the azure instance. Then add export ANDROID_HOME="/path/to/android/sdk" in either the bash_profile or bashrc file depending on linux distro you’re running, and your configuration. – the android sdk doesn’t come baked into meteor.

I’d have to look up the exact method of installing/exporting on your system. Google is your friend…

Actually the sdk was already installed before and home var was defined in jenkins to the right directory as well…
So …

My package output is:

> android list
Available Android targets:
----------
id: 1 or "android-19"
     Name: Android 4.4.2
     Type: Platform
     API level: 19
     Revision: 4
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : default/armeabi-v7a
----------
id: 2 or "android-21"
     Name: Android 5.0.1
     Type: Platform
     API level: 21
     Revision: 2
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : no ABIs.
----------
id: 3 or "android-22"
     Name: Android 5.1.1
     Type: Platform
     API level: 22
     Revision: 2
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : android-tv/armeabi-v7a, android-tv/x86, default/armeabi-v7a, default/x86, default/x86_64
----------
id: 4 or "Google Inc.:Google APIs:22"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 5.1.1 (API level 22)
     Libraries:
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.media.effects (effects.jar)
          Collection of video effects
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : google_apis/armeabi-v7a, google_apis/x86, google_apis/x86_64