Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-33] Windows: androidlib v2 - If you call androidlib.detect(), then an empty array is returned for the results

GitHub Issuen/a
TypeBug
PriorityNone
StatusResolved
ResolutionInvalid
Resolution Date2017-10-26T03:15:41.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsandroidlib
Labelsn/a
ReporterWilson Luu
AssigneeChris Barber
Created2016-08-30T23:47:08.000+0000
Updated2017-10-26T03:15:41.000+0000

Description

*Details:* If you make a androidlib.detect(), then an empty array is returned for the results. *Notes:* * This does not appear on Mac. * ANDROID_SDK environment variable is set. * Android SDK tools and platform-tools are set in the PATH. *Steps to reproduce:*

Make sure you are using Node 4.X.X

Clone and run npm install on https://github.com/appcelerator/androidlib/tree/v2; make sure it's v2 branch

Symlink to the above built androidlib v2

Run this Node script:

'use strict';
// NOTE: currently, symlinked node_modules/androidlib folder to a built local copy of https://github.com/appcelerator/androidlib/tree/v2
const androidlib = require('androidlib').androidlib;

androidlib
    .detect()
    .then(results => {
        console.log(JSON.stringify(results, null, 4));
    })
    .catch('error', err => {
        console.log(err.stack);
    });
*Actual:* An empty array appears for SDK.
C:\Users\qe\Desktop\libautomator>node test.js
{
    "home": "C:\\Users\\qe\\.android\\avd",
    "sdk": [],
    "ndk": []
}
*Expected:* There should not be an empty array for SDK.

Comments

  1. Chris Barber 2017-10-26

    This is no longer valid.

JSON Source