Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13429] CLI: Not able to detect Android SDK on Windows

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionCannot Reproduce
Resolution Date2013-06-04T21:40:16.000+0000
Affected Version/sRelease 3.0.2
Fix Version/s2013 Sprint 12 JS, 2013 Sprint 12
ComponentsCLI
LabelsStudio, Titanium, android, triage
ReporterJamie Buckley
AssigneeChris Barber
Created2013-03-20T07:22:53.000+0000
Updated2014-02-24T19:05:37.000+0000

Description

I open preference screen and point to the titanium studio to set the sdk and ndk path there. After setting the above path android sdk is not loading. It was wornking in titanium studio 3.0.1.Please see the below attachment of image and diagnostic result.

Attachments

FileDateSize
Android_SDK_Missing.png2013-03-20T07:22:53.000+000055163
log1.txt2013-03-20T07:22:53.000+00001934

Comments

  1. Michael Xia 2013-03-21

    @Jamie, Could you ask user to run "titanium info -o json -t android" from the command line and see what output it returns? Thanks.
  2. Dustin Hyde 2013-03-21

    It looks like the Android SDK path was set without error, are there any Android SDKs installed?
  3. Dustin Hyde 2013-03-21

    You can install Android SDKs using Help > Titanium Studio > Show Titanium Dashboard => Get Started > Configure Native SDKs > Android > Update Android SDK => Select/Install Packages.
  4. Dustin Hyde 2013-03-21

    According to TISTUD-3884, there should be a warning if no Android SDKs are installed.
  5. Jamie Buckley 2013-03-21

    I have this issue with another user, and they have the SDKs installed, It worked fine for them with 3.0.1 however when upgrading to 3.0.2 this occured, they installed 3.0.1 again and it resolved the problem. I will have the user run that command Michael and respond with the results.
  6. Dustin Hyde 2013-03-27

    @Jamie: What are the results of:
       ti info -o json -t android
       
  7. Jamie Buckley 2013-03-27

    @Dustin: still waiting on result from the user.
  8. Dustin Hyde 2013-04-04

    OS: Windows 7 Home Premium 64-bit Service Pack 1 Titanium Studio: 3.1.0.201304021849 RC Titanium SDK: 3.1.0.v20130403103046 Beta Android SDK: r.21.1 Android Emulator: Google APIs 4.2.2 Unable to Reproduce. I am able to set the Android SDK without error on Windows. This could be an invalid environment issue, or it could have been fixed somewhere. Suggest opening an improvement to implement global environment validation for entire platform.
  9. Jamie Buckley 2013-04-05

    I am now experiencing this bug when I tried to install today, paths are set correctly, SDKs are installed When I run:
       ti info -o json -t android
       
    I receive:
       Microsoft Windows [Version 6.1.7600]
       Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
       
       C:\Users\Jamie-APPC>ti info -o json -t android
       {
               "android": {
                       "sdkPath": "C:\\Users\\Jamie-APPC\\Documents\\Android",
                       "java": {
                               "version": "",
                               "build": ""
                       },
                       "ndk": {
                               "path": "",
                               "version": ""
                       },
                       "targets": {},
                       "avds": [],
                       "exe": "C:\\Users\\Jamie-APPC\\Documents\\Android\\tools\\androi
       d.bat"
               }
       }
       
  10. Surajit Biswas 2013-04-09

    Hello When I run this command titanium info -o json -t android It returns C:\Users\263668>titanium info -o json -t android {} C:\Users\263668> C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc \lib\analytics.js:180 sessionCookie = status.cookie.match(/(PHPSESSID= [A-Za-z0-9]+)/), ^ TypeError: Cannot call method 'match' of undefined at C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\node_modules\no de-appc\lib\analytics.js:180:35 at async.parallel (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium \node_modules\async\lib\async.js:476:17) at async.forEach (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\ node_modules\async\lib\async.js:94:25) at async.parallel (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium \node_modules\async\lib\async.js:473:21) at process.on.async.parallel.osinfo (C:\Users\263668\AppData\Roaming\npm\nod e_modules\titanium\node_modules\node-appc\lib\analytics.js:56:5) at module.exports.getOSInfo (C:\Users\263668\AppData\Roaming\npm\node_module s\titanium\node_modules\node-appc\lib\environ.js:215:4) at ChildProcess.exithandler (child_process.js:538:7) at ChildProcess.EventEmitter.emit (events.js:99:17) at maybeClose (child_process.js:638:16) at Process._handle.onexit (child_process.js:680:5) I am on windows machine. Do I need to do anything else as my I have already set my path to D:\Android\android-sdk\platform-tools;D:\Android\android-sdk\tools
  11. Surajit Biswas 2013-04-09

    This problem is for CLI only. So I have uninstall CLI using npm uninstall titanium -g command. Then this issue is fixed for windows. So need to fix this CLI issue for windows. @Jamie: Can you please uninstall CLI and confirm this.
  12. Joseph Sachs 2013-04-16

  13. Surajit Biswas 2013-04-16

    Hello Joseph, I have doen the same process but result is same. I am on windows system. In MAC it has no issue.
  14. Chris Barber 2013-06-04

    I tried to reproduce this with the Titanium CLI 3.1.0 and Titanium Studio 3.1.0.201304151600 on Windows 7, but I can't seem to get it to fail. Furthermore, it appears Studio's preference window has changed since the screenshot was taken, so the problem was probably fixed somewhere along the way.
  15. Deepish Adwani 2013-06-15

    Hello Chris, I have the same problem with Titanium CLI 3.1.0 and Titanium Studio 3.1.0.201304151600 on Windows 8. Here is the response of
    ti info -o json -t android
        C:\Windows\system32>ti info -o json -t android
        {
                "android": {
                        "sdkPath": "C:\\Program Files\\Android\\android-sdk",
                        "java": {
                                "version": "1.7.0",
                                "build": "21"
                        },
                        "ndk": {
                                "path": "",
                                "version": ""
                        },
                        "targets": {
                                "1": {
                                        "id": "android-8",
                                        "name": "Android 2.2",
                                        "type": "Platform",
                                        "api-level": "8",
                                        "revision": "3",
                                        "skins": [
                                                "HVGA",
                                                "QVGA",
                                                "WQVGA400",
                                                "WQVGA432",
                                                "WVGA800",
                                                "WVGA854"
                                        ],
                                        "abis": [
                                                "armeabi"
                                        ],
                                        "path": "C:\\Program Files\\Android\\android-sdk
        \\platforms\\android-8"
                                },
                                "2": {
                                        "id": "Google Inc.:Google APIs:8",
                                        "name": "Google APIs",
                                        "type": "Add-On",
                                        "vendor": "Google Inc.",
                                        "revision": "2",
                                        "description": "Android + Google APIs",
                                        "based-on": {
                                                "android-version": "2.2",
                                                "api-level": "8"
                                        },
                                        "libraries": {
                                                "com.google.android.maps": {
                                                        "jar": "maps.jar",
                                                        "description": "API for Google M
        aps"
                                                }
                                        },
                                        "skins": [
                                                "WVGA854",
                                                "WQVGA400",
                                                "HVGA",
                                                "WQVGA432",
                                                "WVGA800",
                                                "QVGA"
                                        ],
                                        "abis": [
                                                "armeabi"
                                        ],
                                        "path": "C:\\Program Files\\Android\\android-sdk
        \\add-ons\\addon-google_apis-google-15"
                                },
                                "3": {
                                        "id": "android-15",
                                        "name": "Android 4.0.3",
                                        "type": "Platform",
                                        "api-level": "15",
                                        "revision": "3",
                                        "skins": [
                                                "HVGA",
                                                "QVGA",
                                                "WQVGA400",
                                                "WQVGA432",
                                                "WSVGA",
                                                "WVGA800",
                                                "WVGA854",
                                                "WXGA720",
                                                "WXGA800"
                                        ],
                                        "abis": [
                                                "armeabi-v7a",
                                                "mips",
                                                "x86"
                                        ],
                                        "path": "C:\\Program Files\\Android\\android-sdk
        \\platforms\\android-15"
                                },
                                "4": {
                                        "id": "Google Inc.:Google APIs:15",
                                        "name": "Google APIs",
                                        "type": "Add-On",
                                        "vendor": "Google Inc.",
                                        "revision": "2",
                                        "description": "Android + Google APIs",
                                        "based-on": {
                                                "android-version": "4.0.3",
                                                "api-level": "15"
                                        },
                                        "libraries": {
                                                "com.google.android.media.effects": {
                                                        "jar": "effects.jar",
                                                        "description": "Collection of vi
        deo effects"
                                                },
                                                "com.android.future.usb.accessory": {
                                                        "jar": "usb.jar",
                                                        "description": "API for USB Acce
        ssories"
                                                },
                                                "com.google.android.maps": {
                                                        "jar": "maps.jar",
                                                        "description": "API for Google M
        aps"
                                                }
                                        },
                                        "skins": [
                                                "WVGA854",
                                                "WQVGA400",
                                                "WSVGA",
                                                "WXGA720",
                                                "HVGA",
                                                "WQVGA432",
                                                "WVGA800",
                                                "QVGA",
                                                "WXGA800"
                                        ],
                                        "abis": [
                                                "armeabi-v7a"
                                        ],
                                        "path": "C:\\Program Files\\Android\\android-sdk
        \\add-ons\\addon-google_apis-google-15"
                                },
                                "5": {
                                        "id": "android-17",
                                        "name": "Android 4.2.2",
                                        "type": "Platform",
                                        "api-level": "17",
                                        "revision": "2",
                                        "skins": [
                                                "HVGA",
                                                "QVGA",
                                                "WQVGA400",
                                                "WQVGA432",
                                                "WSVGA",
                                                "WVGA800",
                                                "WVGA854",
                                                "WXGA720",
                                                "WXGA800",
                                                "WXGA800-7in"
                                        ],
                                        "abis": [
                                                "armeabi-v7a",
                                                "mips",
                                                "x86"
                                        ],
                                        "path": "C:\\Program Files\\Android\\android-sdk
        \\platforms\\android-17"
                                },
                                "6": {
                                        "id": "Google Inc.:Google APIs:17",
                                        "name": "Google APIs",
                                        "type": "Add-On",
                                        "vendor": "Google Inc.",
                                        "revision": "2",
                                        "description": "Android + Google APIs",
                                        "based-on": {
                                                "android-version": "4.2.2",
                                                "api-level": "17"
                                        },
                                        "libraries": {
                                                "com.google.android.media.effects": {
                                                        "jar": "effects.jar",
                                                        "description": "Collection of vi
        deo effects"
                                                },
                                                "com.android.future.usb.accessory": {
                                                        "jar": "usb.jar",
                                                        "description": "API for USB Acce
        ssories"
                                                },
                                                "com.google.android.maps": {
                                                        "jar": "maps.jar",
                                                        "description": "API for Google M
        aps"
                                                }
                                        },
                                        "skins": [
                                                "WVGA854",
                                                "WQVGA400",
                                                "WSVGA",
                                                "WXGA800-7in",
                                                "WXGA720",
                                                "HVGA",
                                                "WQVGA432",
                                                "WVGA800",
                                                "QVGA",
                                                "WXGA800"
                                        ],
                                        "abis": [
                                                "armeabi-v7a"
                                        ],
                                        "path": "C:\\Program Files\\Android\\android-sdk
        \\add-ons\\addon-google_apis-google-15"
                                }
                        },
                        "avds": [
                                {
                                        "name": "4.0",
                                        "path:-c": "\\Users\\deepishPC\\.android\\avd\\4
        .0.avd",
                                        "target": "Android 4.0.3 (API level 15)",
                                        "abi": "armeabi-v7a",
                                        "skin": "480x800",
                                        "sdcard": "512"
                                },
                                {
                                        "name": "TEST-4.2",
                                        "path:-c": "\\Users\\deepishPC\\.android\\avd\\T
        EST-4.2.avd",
                                        "target": "Android 4.2.2 (API level 17)",
                                        "abi": "armeabi-v7a",
                                        "skin": "480x800",
                                        "sdcard": "512"
                                },
                                {
                                        "name": "titanium_1_WVGA800_armeabi-v7a",
                                        "path:-c": "\\Users\\deepishPC\\.android\\avd\\t
        itanium_1_WVGA800_armeabi-v7a.avd",
                                        "target": "Android 4.0.3 (API level 15)",
                                        "abi": "armeabi-v7a",
                                        "skin": "WVGA800",
                                        "sdcard:-c": "\\Users\\deepishPC\\.titanium\\tit
        anium_1_WVGA800_armeabi-v7a.sdcar"
                                }
                        ],
                        "exe": "C:\\Program Files\\Android\\android-sdk\\tools\\android.
        bat"
                }
        }
        
    Screenshot of the issue is as below: I cannot even configure the new SDK, it says SDK is already updated. Note : Android emulator is running fine when i run it through eclipse on the same SDK path. Let me know if you require more details to dig deep into this issue. !http://s13.postimg.org/gw98k5alj/no_android_sdk.jpg!
  16. ujjwal bose 2013-11-01

    i am also stuck with the same problem when i run simple application in titanium i gives [ERROR] : Unable to detect Android SDK targets. [ERROR] Application Installer abnormal process termination. Process exit value was 1 i ran the command ti info -o json -t android then i got the foll. result. { "android": { "sdkPath": "C:\\android-sdk", "java": { "version": "", "build": "" }, "ndk": { "path": "", "version": "" }, "targets": { }, "avds": [ ], "exe": "C:\\android-sdk\\tools\\android.bat. bat" } } please help me i am stuck with it for a many days..
  17. imen ACHOURI 2014-02-24

    this error got to me when i try to runnig my app on android emulator No aidl files to compile, continuing [INFO] : No aidl files to compile, continuing [INFO] : Generating i18n files [INFO] : Generating C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\res\values\theme.xml [INFO] : Packaging application: C:\android-sdk-win\build-tools\19.0.1\aapt.exe "package" "-f" "-m" "-J" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\gen" "-M" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\AndroidManifest.xml" "-A" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\bin\assets" "-S" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\res" "-I" "C:\android-sdk-win\platforms\android-19\android.jar" "-I" "C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\titanium.jar" "-F" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\bin\app.ap_" [INFO] : Building Java source files: C:\Program Files\Java\jdk1.7.0_40\bin\javac.exe "-J-Xmx256M" "-encoding" "utf8" "-bootclasspath" "C:\android-sdk-win\platforms\android-19\android.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\kroll-v8.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-network.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\thirdparty.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-xml.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\jaxen-1.1.1.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-analytics.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-android.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\ti-commons-codec-1.3.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\kroll-common.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\titanium.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-app.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-ui.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\android-support-v4.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\nineoldandroids-appc-2.4.0.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-filesystem.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-media.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-locale.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-utils.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-geolocation.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-accelerometer.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-contacts.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-map.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-gesture.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-calendar.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-platform.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-database.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\lib\titanium-verify.jar;ApplicationStylesheet.class;R.class;TestprojectActivity.class;TestprojectAppInfo.class;TestprojectApplication.class" "-d" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\bin\classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\java-sources.txt" [ERROR] Application Installer abnormal process termination. Process exit value was 8 C:\Users\imen\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:184 throw e; ^ Error: EPERM, operation not permitted 'C:\Program Files\Fichiers communs' at fs.readdirSync (fs.js:654:18) at scan (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:138:25) at scan (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:150:26) at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:156:10 at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:113:8 at q.process (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:731:21) at processImmediate (timers.js:330:15) --------------------------------------------- at async.setImmediate (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:96:15) at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:696:21 at Array.forEach (native) at _each (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:32:24) at _insert (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:681:11) at q.push (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:708:15) at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:129:12 at queue.drain (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\node-appc\lib\subprocess.js:108:3) --------------------------------------------- at async.setImmediate (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:96:15) at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:696:21 at Array.forEach (native) at _each (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:32:24) at _insert (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:681:11) at q.push (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:708:15) at Object.findExecutable (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\node-appc\lib\subprocess.js:113:8) at async.parallel.virtualbox (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:99:20)

JSON Source