[AC-2897] Unable to select Android SDK directory
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Needs more info |
| Resolution Date | 2011-11-24T03:57:22.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Studio |
| Labels | android, crash |
| Reporter | Anthony J. Crowley |
| Assignee | Paul Dowsett |
| Created | 2011-11-11T06:40:44.000+0000 |
| Updated | 2016-03-08T07:47:52.000+0000 |
Description
Android SDK Manager has been installed, and every version of the Android SDK downloaded through it.
Open Studio, Window->Preferences, Titanium Studio->Titanium.
Browse for Android SDK directory. If an invalid directory is selected, "Could not locate the Android SDK at the given path" message is displayed exactly as expected. When correct directory is selected (in this case, "E:\Android\android-sdk"), browse dialog closes, but text box does not update, and application is completely frozen.
I have encountered this issue on both computers that I've tried to set up Titanium Studio on, so it's not an issue that's isolated to a single computer.
Anthony Would you please follow the instructions at [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows), and post the results? Also, attach a screenshot of all the packages you have installed, shown in SDK Manager. Thanks
Sure thing:
!http://i.imgur.com/4Cuc3.jpg!C:\>echo %USERPROFILE% C:\Users\Crowley C:\>echo %PATH% C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%CommonProgramFiles%\Micr osoft Shared\Windows Live;C:\Program Files (x86)\unix\xpsupport\;C:\Windows\syst em32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\unix;C:\Program Fil es (x86)\unix\ssh;C:\Program Files (x86)\apache-maven-2.2.1\bin;C:\Program Files (x86)\apache-ant-1.8.2\bin;C:\Program Files (x86)\MKVtoolnix;c:\Program Files ( x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\QuickTime\QTSyst em\;C:\Program Files (x86)\Git\cmd;C:\Program Files\Common Files\Microsoft Share d\Windows Live;C:\Program Files (x86)\Java\jdk1.6.0_25\bin;c:\Python32 C:\>echo %JAVA_HOME% C:\Program Files (x86)\Java\jdk1.6.0_25 C:\>java -version java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing) C:\>javac -version javac 1.6.0_25 C:\>python -V Python 3.2.2 C:\>git --version git version 1.7.7.1.msysgit.0 C:\>echo %ANDROID_SDK% C:\Program Files (x86)\Android\android-sdk C:\>cd %ANDROID_SDK%\tools C:\Program Files (x86)\Android\android-sdk\tools>adb version Android Debug Bridge version 1.0.29 C:\Program Files (x86)\Android\android-sdk\tools>android list target Available Android targets: ---------- id: 1 or "android-3" Name: Android 1.5 Type: Platform API level: 3 Revision: 4 Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P ABIs : armeabi ---------- id: 2 or "Google Inc.:Google APIs:3" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 3 Description: Android + Google APIs Based on Android 1.5 (API level 3) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P ABIs : armeabi ---------- id: 3 or "android-4" Name: Android 1.6 Type: Platform API level: 4 Revision: 3 Skins: HVGA, QVGA, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 4 or "Google Inc.:Google APIs:4" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 1.6 (API level 4) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, HVGA, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 5 or "android-7" Name: Android 2.1 Type: Platform API level: 7 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 6 or "Google Inc.:Google APIs:7" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.1 (API level 7) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 7 or "android-8" Name: Android 2.2 Type: Platform API level: 8 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 8 or "Google Inc.:Google APIs:8" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.2 (API level 8) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 9 or "android-10" Name: Android 2.3.3 Type: Platform API level: 10 Revision: 2 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 10 or "Google Inc.:Google APIs:10" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.3.3 (API level 10) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 11 or "android-11" Name: Android 3.0 Type: Platform API level: 11 Revision: 2 Skins: WXGA (default) ABIs : armeabi ---------- id: 12 or "Google Inc.:Google APIs:11" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.0 (API level 11) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 13 or "android-12" Name: Android 3.1 Type: Platform API level: 12 Revision: 3 Skins: WXGA (default) ABIs : armeabi ---------- id: 14 or "Google Inc.:Google APIs:12" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.1 (API level 12) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 15 or "android-13" Name: Android 3.2 Type: Platform API level: 13 Revision: 1 Skins: WXGA (default) ABIs : armeabi ---------- id: 16 or "Google Inc.:Google APIs:13" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.2 (API level 13) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 17 or "android-14" Name: Android 4.0 Type: Platform API level: 14 Revision: 1 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W XGA720, WXGA800 ABIs : armeabi-v7a ---------- id: 18 or "Google Inc.:Google APIs:14" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 4.0 (API level 14) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default) , QVGA, WXGA800 ABIs : armeabi-v7a C:\Program Files (x86)\Android\android-sdk\tools>cd \ C:\>rem --- The following are optional --- C:\>rem ---------------------------------- C:\>scons -v 'scons' is not recognized as an internal or external command, operable program or batch file. C:\>rem ---------------------------------- C:\>echo %HTTP_PROXY% %HTTP_PROXY% C:\>echo %HTTPS_PROXY% %HTTPS_PROXY% C:\>rem ---------------------------------- C:\>echo %SOCKS_PROXY% %SOCKS_PROXY% C:\>rem ----------------------------------Anthony Thank you for doing that. Having inspected the results, I have noticed that there is an error in the script, where it changes to the
%ANDROID_SDK%\toolsdirectory and runs theadbexectutable. However, Google moved this to%ANDROID_SDK%\platform-toolssome time ago, which begs the question, how is it running from there on your system? Would you check both directories to see where adb exists? Is the one in tools a symlink? ThanksYes, I noticed the error, but didn't know if something in Studio would be looking in %ANDROID_SDK%\tools, so rather than changing the test, I copied adb and the dll dependencies to tools and re-ran that test, but platform-tools is its original location.
Please delete the copies of adb and associated dlls from the tools directory, as they are not required. Thank you for bringing my attention to the script at [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows). I have fixed it now. Would you mind running it again on your system, after deleting tools/adb? Thank you
Note that we only support Python version 2.X.X. Please would you uninstall version 3 and replace it with this? See the [Installing Python](http://wiki.appcelerator.org/display/guides/Installing+Python) guide.
Done and done.
C:\Users\Crowley>cd \ C:\>echo %USERPROFILE% C:\Users\Crowley C:\>echo %PATH% C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%CommonProgramFiles%\Micr osoft Shared\Windows Live;C:\Program Files (x86)\unix\xpsupport\;C:\Windows\syst em32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\unix;C:\Program Fil es (x86)\unix\ssh;C:\Program Files (x86)\apache-maven-2.2.1\bin;C:\Program Files (x86)\apache-ant-1.8.2\bin;C:\Program Files (x86)\MKVtoolnix;c:\Program Files ( x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\QuickTime\QTSyst em\;C:\Program Files (x86)\Git\cmd;C:\Program Files\Common Files\Microsoft Share d\Windows Live;C:\Program Files (x86)\Java\jdk1.6.0_25\bin;c:\Python27 C:\>echo %JAVA_HOME% C:\Program Files (x86)\Java\jdk1.6.0_25 C:\>java -version java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing) C:\>javac -version javac 1.6.0_25 C:\>python -V Python 2.7.2 C:\>git --version git version 1.7.7.1.msysgit.0 C:\>echo %ANDROID_SDK% C:\Program Files (x86)\Android\android-sdk C:\>cd %ANDROID_SDK%\platform-tools C:\Program Files (x86)\Android\android-sdk\platform-tools>adb version Android Debug Bridge version 1.0.29 C:\Program Files (x86)\Android\android-sdk\platform-tools>cd ..\tools C:\Program Files (x86)\Android\android-sdk\tools>android list target Available Android targets: ---------- id: 1 or "android-3" Name: Android 1.5 Type: Platform API level: 3 Revision: 4 Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P ABIs : armeabi ---------- id: 2 or "Google Inc.:Google APIs:3" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 3 Description: Android + Google APIs Based on Android 1.5 (API level 3) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P ABIs : armeabi ---------- id: 3 or "android-4" Name: Android 1.6 Type: Platform API level: 4 Revision: 3 Skins: HVGA, QVGA, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 4 or "Google Inc.:Google APIs:4" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 1.6 (API level 4) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, HVGA, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 5 or "android-7" Name: Android 2.1 Type: Platform API level: 7 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 6 or "Google Inc.:Google APIs:7" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.1 (API level 7) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 7 or "android-8" Name: Android 2.2 Type: Platform API level: 8 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 8 or "Google Inc.:Google APIs:8" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.2 (API level 8) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 9 or "android-10" Name: Android 2.3.3 Type: Platform API level: 10 Revision: 2 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 10 or "Google Inc.:Google APIs:10" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.3.3 (API level 10) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 11 or "android-11" Name: Android 3.0 Type: Platform API level: 11 Revision: 2 Skins: WXGA (default) ABIs : armeabi ---------- id: 12 or "Google Inc.:Google APIs:11" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.0 (API level 11) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 13 or "android-12" Name: Android 3.1 Type: Platform API level: 12 Revision: 3 Skins: WXGA (default) ABIs : armeabi ---------- id: 14 or "Google Inc.:Google APIs:12" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.1 (API level 12) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 15 or "android-13" Name: Android 3.2 Type: Platform API level: 13 Revision: 1 Skins: WXGA (default) ABIs : armeabi ---------- id: 16 or "Google Inc.:Google APIs:13" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.2 (API level 13) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 17 or "android-14" Name: Android 4.0 Type: Platform API level: 14 Revision: 1 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W XGA720, WXGA800 ABIs : armeabi-v7a ---------- id: 18 or "Google Inc.:Google APIs:14" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 4.0 (API level 14) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default) , QVGA, WXGA800 ABIs : armeabi-v7a C:\Program Files (x86)\Android\android-sdk\tools>cd \ C:\>rem --- The following are optional --- C:\>rem ---------------------------------- C:\>scons -v 'scons' is not recognized as an internal or external command, operable program or batch file. C:\>rem ---------------------------------- C:\>echo %HTTP_PROXY% %HTTP_PROXY% C:\>echo %HTTPS_PROXY% %HTTPS_PROXY% C:\>rem ---------------------------------- C:\>echo %SOCKS_PROXY% %SOCKS_PROXY% C:\>rem ----------------------------------Anthony Sorry this is causing you so much grief. Would you try a couple of things for me, please? Firstly, close Studio, delete the android_sdk system variable, and launch Studio. Then try the process again. If this does not work, would you completely uninstall the Android SDK and then reinstall, ensuring that you have all (only) the packages shown in [Summary of Installed Android Packages](http://wiki.appcelerator.org/display/guides/Installing+and+Updating+Android+SDK#InstallingandUpdatingAndroidSDK-SummaryofInstalledAndroidPackages) (except that you will have the latest version of tools - 15 and 9 respectively). Cheers
Hey Paul, On my office computer at the moment. Put a clean install of Studio on, then installed Android SDK with only the packages shown in your link. Exactly the same problem. I'm pretty stumped at this point, does Eclipse of some kind of debug mode so we can see exactly where it's getting hung up? I'm only really used to using Eclipse as a dev environment, so am not familiar with some of the lower level features it offers.
Anthony OK, would you mind just doing the following on your office machine? This will help me prove an issue that is possibly affecting quite a few people at the moment: * start Studio and install the latest continuous build from the [master branch](http://builds.appcelerator.com.s3.amazonaws.com/index.html) (use the dropdown menu) of our continuous builds site, using Studio's *Help > Install Titanium SDK from URL* function. Note that you don't need to use this version (1.8.0.1) when compiling your apps - you just need it installed, as Studio will automatically use this for the python scripts as it is the most recent version on the system * restart Studio * try to configure the Android path again in Studio, being careful to click the apply button if necessary If this works on the office machine, try it on the first machine to verify the fix. Let me know how you get on. Thank you! :)
Done, this does not resolve the issue. Where is the Android SDK configuration info stored? I could try manually editing the config file, and see if that works.
OK, thank you Anthony. For the office machine, please would you follow the instructions at [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows) please? Note that the script has changed slightly since you last ran it.
Ok, here's the output from the script in a more or less as-is state:
There are a couple of things that jump out at me: * GIT isn't installed, that's because I told Studio to download and use PortableGIT on first launch * The Android tools aren't running, because they're in the platform-tools and tools directories respectively, they're not in the %PATH%, and we're not in the directory. Here's the output from them if they HAD run:C:\Users\kmccann>cd \ C:\>echo %USERPROFILE% C:\Users\kmccann C:\>echo %PATH% %CommonProgramFiles%\Microsoft Shared\Windows Live;C:\windows\system32;C:\window s;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Progra m Files\Hewlett-Packard\Drive Encryption\;C:\Program Files\WIDCOMM\Bluetooth Sof tware\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x8 6)\unix\xpsupport\;C:\Program Files (x86)\unix;C:\Program Files (x86)\unix\ssh;C :\Program Files (x86)\apache-maven-3.0.3\bin;C:\Program Files (x86)\apache-ant-1 .8.2\bin;C:\Program Files\Google\Google Apps Migration\;C:\Program Files\Google\ Google Apps Sync\;C:\Program Files\SlikSvn\bin;C:\Program Files (x86)\Adobe\Adob e Flash Builder 4.5\sdks\4.5.1\bin;C:\Program Files\TortoiseSVN\bin;c:\Python27; C:\Program Files (x86)\Java\jdk1.7.0_01\bin C:\>echo %JAVA_HOME% C:\Program Files (x86)\Java\jdk1.6.0_25 C:\>java -version java version "1.7.0_01" Java(TM) SE Runtime Environment (build 1.7.0_01-b08) Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing) C:\>javac -version javac 1.7.0_01 C:\>python -V Python 2.7.2 C:\>git --version 'git' is not recognized as an internal or external command, operable program or batch file. C:\>rem if the ANDROID_SDK variable is configured, please delete it and run this script again C:\>echo %ANDROID_SDK% %ANDROID_SDK% C:\>adb version 'adb' is not recognized as an internal or external command, operable program or batch file. C:\>cd %PROGRAMFILES% C:\Program Files>android list target 'android' is not recognized as an internal or external command, operable program or batch file. C:\Program Files>cd \ C:\>rem --- The following are optional --- C:\>rem ---------------------------------- C:\>scons -v 'scons' is not recognized as an internal or external command, operable program or batch file. C:\>rem ---------------------------------- C:\>echo %HTTP_PROXY% %HTTP_PROXY% C:\>echo %HTTPS_PROXY% %HTTPS_PROXY% C:\>rem ---------------------------------- C:\>echo %SOCKS_PROXY% %SOCKS_PROXY% C:\>rem ----------------------------------Let me know if there's anything else I can do.C:\Program Files (x86)\Android\android-sdk\tools>"\Program Files (x86)\Android\a ndroid-sdk\platform-tools\adb.exe" version Android Debug Bridge version 1.0.29 C:\Program Files (x86)\Android\android-sdk\tools>"\Program Files (x86)\Android\a ndroid-sdk\tools\android.bat" list target Available Android targets: ---------- id: 1 or "android-4" Name: Android 1.6 Type: Platform API level: 4 Revision: 3 Skins: HVGA, QVGA, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 2 or "Google Inc.:Google APIs:4" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 1.6 (API level 4) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, HVGA, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 3 or "android-7" Name: Android 2.1 Type: Platform API level: 7 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 4 or "Google Inc.:Google APIs:7" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.1 (API level 7) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 5 or "android-8" Name: Android 2.2 Type: Platform API level: 8 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 6 or "Google Inc.:Google APIs:8" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.2 (API level 8) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabiOK, great, Anthony! I am glad you are still with me! ;) Points to note: * we don't officially support Java 1.7, as stated in [Installing Oracle JDK](http://wiki.appcelerator.org/display/guides/Installing+Oracle+JDK) * you should certainly configure the PATH variable with the
toolsandplatform-toolsdirectories, as stated [Installing and Updating Android SDK](http://wiki.appcelerator.org/display/guides/Installing+and+Updating+Android+SDK). This will allow adb and android to run when using the script, and can be much more convenient when developing Would you provide a listing (a screenshot is fine, if it's easier) of the following directories? *C:\Program Files (x86)\Android\android-sdk\add-ons*C:\Program Files (x86)\Android\android-sdk\platformsI will then compare these to my running system. ThanksDirectory of C:\Program Files (x86)\Android\android-sdk\add-ons\* 11/16/2011 11:48 <DIR> . 11/16/2011 11:48 <DIR> .. 11/16/2011 11:49 <DIR> addon-google_apis-google_inc_-4 11/16/2011 11:48 <DIR> addon-google_apis-google_inc_-7 11/16/2011 11:47 <DIR> addon-google_apis-google_inc_-8 0 bytes in 0 files and 5 dirsDirectory of C:\Program Files (x86)\Android\android-sdk\platforms\* 11/16/2011 11:45 <DIR> . 11/16/2011 11:45 <DIR> .. 11/16/2011 11:45 <DIR> android-4 11/16/2011 11:44 <DIR> android-7 11/16/2011 11:44 <DIR> android-8 0 bytes in 0 files and 5 dirsHi Anthony Those directories are in the same format as mine, which is good. On Titanium Studio's *Preferences > Titanium Studio > Titanium* screen, at the top, it will state the location of your _Titanium SDK Directory_. Would you also provide a directory listing of this, in just the same way as you did above? Thank you
Directory of C:\Users\kmccann\AppData\Roaming\Titanium\* 11/10/2011 10:41 <DIR> . 11/10/2011 10:41 <DIR> .. 11/10/2011 10:41 <DIR> mobilesdk 11/10/2011 10:41 <DIR> modules 11/10/2011 10:41 <DIR> runtime 11/10/2011 10:41 <DIR> sdk 0 bytes in 0 files and 6 dirsOh, I am really sorry! I meant
C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32:/Note: note the previous edit - it's the win32 directory listing that I need. Apologies again.
...and in the versioned folderDirectory of C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\* 11/16/2011 17:37 <DIR> . 11/16/2011 17:37 <DIR> .. 11/10/2011 10:41 <DIR> 1.7.5 11/16/2011 17:37 <DIR> 1.8.0.1.v20111116130058 0 bytes in 0 files and 4 dirsDirectory of C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1 .v20111116130058\* 11/16/2011 17:37 <DIR> . 11/16/2011 17:37 <DIR> .. 11/16/2011 17:37 <DIR> all 11/16/2011 17:38 <DIR> android 11/16/2011 17:37 <DIR> common 11/16/2011 17:37 <DIR> iphone 11/16/2011 17:37 <DIR> mobileweb 11/16/2011 17:37 <DIR> module 11/16/2011 17:37 <DIR> osx 11/16/2011 17:37 <DIR> plugin 11/16/2011 17:37 <DIR> win32 11/16/2011 17:37 6 .gitignore 11/16/2011 17:37 6,864,847 api.jsca 11/16/2011 17:37 1,164 app.js 11/16/2011 17:37 1,470 findpython.bat 11/16/2011 17:37 1,158 KS_nav_ui.png 11/16/2011 17:37 1,074 KS_nav_views.png 11/16/2011 17:37 11,485 LICENSE 11/16/2011 17:37 717 manifest.py 11/16/2011 17:37 3,163 project.py 11/16/2011 17:37 551 README 11/16/2011 17:37 15,830 tiapp.py 11/16/2011 17:37 1,169 tiapp.xml 11/16/2011 17:37 172 titanium.bat 11/16/2011 17:37 14,447 titanium.py 11/16/2011 17:37 60 version.txt 6,917,313 bytes in 15 files and 11 dirsThis is indeed mystifying! Everything seems to be in the correct place. Even though I doubt that these are the cause, we will need to make sure the system precisely adheres to the recommendations by doing the following: * uninstall JDK 1.7 and replace it with 1.6, in line with ours and [Android's](http://developer.android.com/sdk/requirements.html) system requirements * add the android tools and platform-tools directories to the system PATH variable * run the [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows) script again. Everything should run without your intervention this time If there is nothing I can see wrong with the output, then there is one thing more we can try and then I will escalate this to our Engineering team Thanks again for your patience.
Same thing. Two completely different systems, which is really odd, but rules out it being a one-off glitch. I'm trying to work out what's common between them (other than the same OS). Antivirus is the same, but I've tried disabling that. Both are running several other versions of Eclipse (Flash Builder, Aptana), but I don't see why that would cause this problem. I'm completely stumped, hopefully we can get to the bottom of this though, happy to help, we're all developers here!C:\Users\kmccann>cd \ C:\>echo %USERPROFILE% C:\Users\kmccann C:\>echo %PATH% %CommonProgramFiles%\Microsoft Shared\Windows Live;C:\windows\system32;C:\window s;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Progra m Files\Hewlett-Packard\Drive Encryption\;C:\Program Files\WIDCOMM\Bluetooth Sof tware\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x8 6)\unix\xpsupport\;C:\Program Files (x86)\unix;C:\Program Files (x86)\unix\ssh;C :\Program Files (x86)\apache-maven-3.0.3\bin;C:\Program Files (x86)\apache-ant-1 .8.2\bin;C:\Program Files\Google\Google Apps Migration\;C:\Program Files\Google\ Google Apps Sync\;C:\Program Files\SlikSvn\bin;C:\Program Files (x86)\Adobe\Adob e Flash Builder 4.5\sdks\4.5.1\bin;C:\Program Files\TortoiseSVN\bin;c:\Python27; C:\Program Files (x86)\Java\jdk1.6.0_25\bin;C:\Program Files (x86)\Android\andro id-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools C:\>echo %JAVA_HOME% C:\Program Files (x86)\Java\jdk1.6.0_25 C:\>java -version java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode) C:\>javac -version javac 1.6.0_25 C:\>python -V Python 2.7.2 C:\>git --version 'git' is not recognized as an internal or external command, operable program or batch file. C:\>rem if the ANDROID_SDK variable is configured, please delete it and run this script again C:\>echo %ANDROID_SDK% %ANDROID_SDK% C:\>adb version Android Debug Bridge version 1.0.29 C:\>cd %PROGRAMFILES% C:\Program Files>android list target Available Android targets: ---------- id: 1 or "android-4" Name: Android 1.6 Type: Platform API level: 4 Revision: 3 Skins: HVGA, QVGA, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 2 or "Google Inc.:Google APIs:4" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 1.6 (API level 4) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, HVGA, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 3 or "android-7" Name: Android 2.1 Type: Platform API level: 7 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 4 or "Google Inc.:Google APIs:7" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.1 (API level 7) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 5 or "android-8" Name: Android 2.2 Type: Platform API level: 8 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 6 or "Google Inc.:Google APIs:8" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.2 (API level 8) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi C:\Program Files>cd \ C:\>rem --- The following are optional --- C:\>rem ---------------------------------- C:\>scons -v 'scons' is not recognized as an internal or external command, operable program or batch file. C:\>rem ---------------------------------- C:\>echo %HTTP_PROXY% %HTTP_PROXY% C:\>echo %HTTPS_PROXY% %HTTPS_PROXY% C:\>rem ---------------------------------- C:\>echo %SOCKS_PROXY% %SOCKS_PROXY% C:\>rem ----------------------------------Anthony, your gracious spirit is appreciated! :) Would you run the following two commands at the command line (you should be able to simply copy and paste them):
Thankspython C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\avd.py "C:\Program Files (x86)\Android\android-sdk\" python C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.7.5\android\avd.py "C:\Program Files (x86)\Android\android-sdk\"At home now, so slightly different paths, but there seems to be some problem with the output.
[c:\]python C:\ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\andr oid\avd.py "C:\Program Files (x86)\Android\android-sdk\" [ERROR] Usage: java [-options] class [args...] [ERROR] (to execute a class) [ERROR] or java [-options] -jar jarfile [args...] [ERROR] (to execute a jar file) [ERROR] where options include: [ERROR] -d32 use a 32-bit data model if available [ERROR] -d64 use a 64-bit data model if available [ERROR] -client to select the "client" VM [ERROR] -server to select the "server" VM [ERROR] -hotspot is a synonym for the "client" VM [deprecated] [ERROR] The default VM is client. [ERROR] [ERROR] -cp <class search path of directories and zip/jar files> [ERROR] -classpath <class search path of directories and zip/jar files> [ERROR] A ; separated list of directories, JAR archives, [ERROR] and ZIP archives to search for class files. [ERROR] -D<name>=<value> [ERROR] set a system property [ERROR] -verbose[:class|gc|jni] [ERROR] enable verbose output [ERROR] -version print product version and exit [ERROR] -version:<value> [ERROR] require the specified version to run [ERROR] -showversion print product version and continue [ERROR] -jre-restrict-search | -no-jre-restrict-search [ERROR] include/exclude user private JREs in the version searc h [ERROR] -? -help print this help message [ERROR] -X print help on non-standard options [ERROR] -ea[:<packagename>...|:<classname>] [ERROR] -enableassertions[:<packagename>...|:<classname>] [ERROR] enable assertions with specified granularity [ERROR] -da[:<packagename>...|:<classname>] [ERROR] -disableassertions[:<packagename>...|:<classname>] [ERROR] disable assertions with specified granularity [ERROR] -esa | -enablesystemassertions [ERROR] enable system assertions [ERROR] -dsa | -disablesystemassertions [ERROR] disable system assertions [ERROR] -agentlib:<libname>[=<options>] [ERROR] load native agent library <libname>, e.g. -agentlib:hp rof [ERROR] see also, -agentlib:jdwp=help and -agentlib:hprof=help [ERROR] -agentpath:<pathname>[=<options>] [ERROR] load native agent library by full pathname [ERROR] -javaagent:<jarpath>[=<options>] [ERROR] load Java programming language agent, see java.lang.in strument [ERROR] -splash:<imagepath> [ERROR] show splash screen with specified image [ERROR] See http://java.sun.com/javase/reference for more details. Traceback (most recent call last): File "C:\ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\ avd.py", line 45, in <module> print get_avds(sdk) File "C:\ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\ avd.py", line 21, in get_avds for line in run.run([sdk.get_android(),'list','target'],debug=False).split(" \n"): AttributeError: 'NoneType' object has no attribute 'split' [c:\]python C:\ProgramData\Titanium\mobilesdk\win32\1.7.5\android\avd.py "C:\Pro gram Files (x86)\Android\android-sdk\" [ERROR] Usage: java [-options] class [args...] [ERROR] (to execute a class) [ERROR] or java [-options] -jar jarfile [args...] [ERROR] (to execute a jar file) [ERROR] where options include: [ERROR] -d32 use a 32-bit data model if available [ERROR] -d64 use a 64-bit data model if available [ERROR] -client to select the "client" VM [ERROR] -server to select the "server" VM [ERROR] -hotspot is a synonym for the "client" VM [deprecated] [ERROR] The default VM is client. [ERROR] [ERROR] -cp <class search path of directories and zip/jar files> [ERROR] -classpath <class search path of directories and zip/jar files> [ERROR] A ; separated list of directories, JAR archives, [ERROR] and ZIP archives to search for class files. [ERROR] -D<name>=<value> [ERROR] set a system property [ERROR] -verbose[:class|gc|jni] [ERROR] enable verbose output [ERROR] -version print product version and exit [ERROR] -version:<value> [ERROR] require the specified version to run [ERROR] -showversion print product version and continue [ERROR] -jre-restrict-search | -no-jre-restrict-search [ERROR] include/exclude user private JREs in the version searc h [ERROR] -? -help print this help message [ERROR] -X print help on non-standard options [ERROR] -ea[:<packagename>...|:<classname>] [ERROR] -enableassertions[:<packagename>...|:<classname>] [ERROR] enable assertions with specified granularity [ERROR] -da[:<packagename>...|:<classname>] [ERROR] -disableassertions[:<packagename>...|:<classname>] [ERROR] disable assertions with specified granularity [ERROR] -esa | -enablesystemassertions [ERROR] enable system assertions [ERROR] -dsa | -disablesystemassertions [ERROR] disable system assertions [ERROR] -agentlib:<libname>[=<options>] [ERROR] load native agent library <libname>, e.g. -agentlib:hp rof [ERROR] see also, -agentlib:jdwp=help and -agentlib:hprof=help [ERROR] -agentpath:<pathname>[=<options>] [ERROR] load native agent library by full pathname [ERROR] -javaagent:<jarpath>[=<options>] [ERROR] load Java programming language agent, see java.lang.in strument [ERROR] -splash:<imagepath> [ERROR] show splash screen with specified image [ERROR] See http://java.sun.com/javase/reference for more details. Traceback (most recent call last): File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.5\android\avd.py", line 45, in <module> print get_avds(sdk) File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.5\android\avd.py", line 21, in get_avds for line in run.run([sdk.get_android(),'list','target'],debug=False).split(" \n"): AttributeError: 'NoneType' object has no attribute 'split'Anthony, it's only really possible for us to troubleshoot one machine at a time, I'm afraid, as there may be inconsistencies between them that could confuse the issue. Would you post the diagnostics output for this home machine, please? Thanks
Anthony - are you able to provide the above info? Thanks
Sure thing.
C:\Users\kmccann>python C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win3 2\1.8.0.1.v20111116130058\android\avd.py "C:\Program Files (x86)\Android\android -sdk\" Traceback (most recent call last): File "C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1.v20111 116130058\android\avd.py", line 44, in <module> sdk = AndroidSDK(os.path.expanduser(dequote(sys.argv[1]))) File "C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1.v20111 116130058\android\androidsdk.py", line 50, in __init__ self.find_platform_dir() File "C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1.v20111 116130058\android\androidsdk.py", line 90, in find_platform_dir raise Exception("No \"%s\" or \"%s\" in the Android SDK" % ('android-%s' % s elf.api_level, android_api_levels[self.api_level])) Exception: No "android-8" or "android-2.2" in the Android SDK C:\Users\kmccann>python C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win3 2\1.7.5\android\avd.py "C:\Program Files (x86)\Android\android-sdk\" Traceback (most recent call last): File "C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.7.5\android\ avd.py", line 44, in <module> sdk = AndroidSDK(os.path.expanduser(dequote(sys.argv[1]))) File "C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.7.5\android\ androidsdk.py", line 50, in __init__ self.find_platform_dir() File "C:\Users\kmccann\AppData\Roaming\Titanium\mobilesdk\win32\1.7.5\android\ androidsdk.py", line 90, in find_platform_dir raise Exception("No \"%s\" or \"%s\" in the Android SDK" % ('android-%s' % s elf.api_level, android_api_levels[self.api_level])) Exception: No "android-7" or "android-2.1" in the Android SDKThank you for that, but are the Titanium and Android SDKs in exactly the same locations on both machines? Which machine was that last output from? Also, I was requesting the output from [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows) for the home machine, if that is the one that we are now dealing with. Can we just deal with one machine from now on? Please tell me which one that is, and provide the output to the [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows) script, and the above python commands. Thanks
Note: this has been edited Would you please verify whether or not the following resources exist for the Home machine:
"C:\ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\avd.py""C:\Program Files (x86)\Android\android-sdk\"ThanksWould you please provide the [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows) output for the Home machine? Thanks
Hi Paul, I can confirm that those resources exist. Here is the diagnostics output:
[C:\ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android]cd \ [C:\]echo %USERPROFILE% C:\Users\Crowley [C:\]echo %PATH% C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common F iles\Microsoft Shared\Windows Live;C:\Program Files (x86)\unix\xpsupport\;C:\Win dows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPow erShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\unix;C:\Pr ogram Files (x86)\unix\ssh;C:\Program Files (x86)\apache-maven-2.2.1\bin;C:\Prog ram Files (x86)\apache-ant-1.8.2\bin;C:\Program Files (x86)\MKVtoolnix;c:\Progra m Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\QuickTi me\QTSystem\;C:\Program Files (x86)\Git\cmd;C:\Program Files\Common Files\Micros oft Shared\Windows Live;C:\Program Files (x86)\Java\jdk1.6.0_25\bin;c:\Python32 [C:\]echo %JAVA_HOME% C:\Program Files (x86)\Java\jdk1.6.0_25 [C:\]java -version java version "1.7.0_01" Java(TM) SE Runtime Environment (build 1.7.0_01-b08) Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing) [C:\]javac -version javac 1.6.0_25 [C:\]python -V Python 2.7.2 [C:\]git --version git version 1.7.7.1.msysgit.0 [C:\]rem if the ANDROID_SDK variable is configured, please delete it and run thi s script again [C:\]echo %ANDROID_SDK% C:\Program Files (x86)\Android\android-sdk [C:\]adb version TCC: Unknown command "adb" [C:\]cd %PROGRAMFILES% [C:\Program Files (x86)]android list target TCC: Unknown command "android" [C:\Program Files (x86)]cd \ [C:\]rem --- The following are optional --- [C:\]rem ---------------------------------- [C:\]scons -v TCC: Unknown command "scons" [C:\]rem ---------------------------------- [C:\]echo %HTTP_PROXY% ECHO is OFF [C:\]echo %HTTPS_PROXY% ECHO is OFF [C:\]rem ---------------------------------- [C:\]echo %SOCKS_PROXY% ECHO is OFF [C:\]rem ----------------------------------On the home machine, please do the following: * remove java and JDK 1.7 * verify that the most recent JDK 32bit 1.6 is installed * verify that the PATH system variable includes the *
\path\to\javac* * verify that JAVA_HOME system variable is correct * remove the system variable ANDROID_SDK * add *\path\to\adb* and *\path\to\android* to your system PATH * reboot machine Then run [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows) again and post the output. ThanksDone, here's the output. Side note - as you'll see from the output I'm still running JRE 1.7, but JDK 1.6. If you also need me to downgrade JRE, let me know.
[c:\]cd \ [c:\]echo %USERPROFILE% C:\Users\Crowley [c:\]echo %PATH% C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\unix\xpsupport\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System 32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\unix;C:\Program Files (x86)\unix\ssh;C:\Program Files (x86)\apache-maven-2.2.1\bin;C:\Program Files (x86)\apache-ant-1.8.2\bin;C:\Program Files (x86)\MKVtoolnix;c:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Git\cmd;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Java\jdk1.6.0_25\bin;c:\Python27;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files (x86)\Android\android-sdk\tools [c:\]echo %JAVA_HOME% C:\Program Files (x86)\Java\jdk1.6.0_25 [c:\]java -version java version "1.7.0_01" Java(TM) SE Runtime Environment (build 1.7.0_01-b08) Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing) [c:\]javac -version javac 1.6.0_25 [c:\]python -V Python 2.7.2 [c:\]git --version git version 1.7.7.1.msysgit.0 [c:\]rem if the ANDROID_SDK variable is configured, please delete it and run this script again [c:\]echo %ANDROID_SDK% ECHO is OFF [c:\]adb version Android Debug Bridge version 1.0.29 [c:\]cd %PROGRAMFILES% [C:\Program Files (x86)]android list target Available Android targets: ---------- id: 1 or "android-3" Name: Android 1.5 Type: Platform API level: 3 Revision: 4 Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P ABIs : armeabi ---------- id: 2 or "Google Inc.:Google APIs:3" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 3 Description: Android + Google APIs Based on Android 1.5 (API level 3) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P ABIs : armeabi ---------- id: 3 or "android-4" Name: Android 1.6 Type: Platform API level: 4 Revision: 3 Skins: HVGA, QVGA, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 4 or "Google Inc.:Google APIs:4" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 1.6 (API level 4) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, HVGA, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 5 or "android-7" Name: Android 2.1 Type: Platform API level: 7 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 6 or "Google Inc.:Google APIs:7" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.1 (API level 7) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 7 or "android-8" Name: Android 2.2 Type: Platform API level: 8 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 8 or "Google Inc.:Google APIs:8" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.2 (API level 8) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 9 or "android-10" Name: Android 2.3.3 Type: Platform API level: 10 Revision: 2 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 10 or "Google Inc.:Google APIs:10" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.3.3 (API level 10) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 11 or "android-11" Name: Android 3.0 Type: Platform API level: 11 Revision: 2 Skins: WXGA (default) ABIs : armeabi ---------- id: 12 or "Google Inc.:Google APIs:11" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.0 (API level 11) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 13 or "android-12" Name: Android 3.1 Type: Platform API level: 12 Revision: 3 Skins: WXGA (default) ABIs : armeabi ---------- id: 14 or "Google Inc.:Google APIs:12" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.1 (API level 12) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 15 or "android-13" Name: Android 3.2 Type: Platform API level: 13 Revision: 1 Skins: WXGA (default) ABIs : armeabi ---------- id: 16 or "Google Inc.:Google APIs:13" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.2 (API level 13) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 17 or "android-14" Name: Android 4.0 Type: Platform API level: 14 Revision: 1 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800 ABIs : armeabi-v7a ---------- id: 18 or "Google Inc.:Google APIs:14" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 4.0 (API level 14) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default), QVGA, WXGA800 ABIs : armeabi-v7a [C:\Program Files (x86)]cd \ [C:\]rem --- The following are optional --- [C:\]rem ---------------------------------- [C:\]scons -v TCC: Unknown command "scons" [C:\]rem ---------------------------------- [C:\]echo %HTTP_PROXY% ECHO is OFF [C:\]echo %HTTPS_PROXY% ECHO is OFF [C:\]rem ---------------------------------- [C:\]echo %SOCKS_PROXY% ECHO is OFF [C:\]rem ---------------------------------- [C:\]Yes please, Anthony: * remove JRE and JDK 1.7 and 1.6 * install JDK 32bit 1.6, that includes JRE 1.6 * verify that the PATH system variable includes
\path\to\javaand\path\to\javac* verify that JAVA_HOME system variable is correct * reboot * run [Install Diagnostics for Windows](http://wiki.appcelerator.org/display/guides/Installation+Troubleshooting#InstallationTroubleshooting-InstallDiagnosticsforWindows) and provide the output * post a screenshot of your Android SDK installed packages * provide the output from the following commands:Once this is done, then your environment is definitely set up "by the book". Thankspython \path\to\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\avd.py "C:\Program Files (x86)\Android\android-sdk" python \path\to\Titanium\mobilesdk\win32\1.7.5\android\avd.py "C:\Program Files (x86)\Android\android-sdk"Did you make any progress with this, Anthony? Thanks
I should be able to take a look at it tonight, I'll let you know. Cheers.
OK, Anthony, looking forward to it! ;)
Install diagnostics:
Python output:C:\Users\Crowley>cd \ C:\>echo %USERPROFILE% C:\Users\Crowley C:\>echo %PATH% C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%CommonProgramFiles%\Micr osoft Shared\Windows Live;C:\Program Files (x86)\unix\xpsupport\;C:\Windows\syst em32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\unix;C:\Program Fil es (x86)\unix\ssh;C:\Program Files (x86)\apache-maven-2.2.1\bin;C:\Program Files (x86)\apache-ant-1.8.2\bin;C:\Program Files (x86)\MKVtoolnix;c:\Program Files ( x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\QuickTime\QTSyst em\;C:\Program Files (x86)\Git\cmd;C:\Program Files\Common Files\Microsoft Share d\Windows Live;C:\Program Files (x86)\Java\jdk1.6.0_25\bin;c:\Python27;C:\Progra m Files (x86)\Android\android-sdk\platform-tools;C:\Program Files (x86)\Android\ android-sdk\tools C:\>echo %JAVA_HOME% C:\Program Files (x86)\Java\jdk1.6.0_25 C:\>java -version java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing) C:\>javac -version javac 1.6.0_25 C:\>python -V Python 2.7.2 C:\>git --version git version 1.7.7.1.msysgit.0 C:\>rem if the ANDROID_SDK variable is configured, please delete it and run this script again C:\>echo %ANDROID_SDK% %ANDROID_SDK% C:\>adb version Android Debug Bridge version 1.0.29 C:\>cd %PROGRAMFILES% C:\Program Files>android list target Available Android targets: ---------- id: 1 or "android-3" Name: Android 1.5 Type: Platform API level: 3 Revision: 4 Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P ABIs : armeabi ---------- id: 2 or "Google Inc.:Google APIs:3" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 3 Description: Android + Google APIs Based on Android 1.5 (API level 3) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P ABIs : armeabi ---------- id: 3 or "android-4" Name: Android 1.6 Type: Platform API level: 4 Revision: 3 Skins: HVGA, QVGA, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 4 or "Google Inc.:Google APIs:4" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 1.6 (API level 4) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, HVGA, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 5 or "android-7" Name: Android 2.1 Type: Platform API level: 7 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 6 or "Google Inc.:Google APIs:7" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.1 (API level 7) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 7 or "android-8" Name: Android 2.2 Type: Platform API level: 8 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 8 or "Google Inc.:Google APIs:8" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.2 (API level 8) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 9 or "android-10" Name: Android 2.3.3 Type: Platform API level: 10 Revision: 2 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854 ABIs : armeabi ---------- id: 10 or "Google Inc.:Google APIs:10" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 2.3.3 (API level 10) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA ABIs : armeabi ---------- id: 11 or "android-11" Name: Android 3.0 Type: Platform API level: 11 Revision: 2 Skins: WXGA (default) ABIs : armeabi ---------- id: 12 or "Google Inc.:Google APIs:11" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.0 (API level 11) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 13 or "android-12" Name: Android 3.1 Type: Platform API level: 12 Revision: 3 Skins: WXGA (default) ABIs : armeabi ---------- id: 14 or "Google Inc.:Google APIs:12" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.1 (API level 12) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 15 or "android-13" Name: Android 3.2 Type: Platform API level: 13 Revision: 1 Skins: WXGA (default) ABIs : armeabi ---------- id: 16 or "Google Inc.:Google APIs:13" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 3.2 (API level 13) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WXGA (default) ABIs : armeabi ---------- id: 17 or "android-14" Name: Android 4.0 Type: Platform API level: 14 Revision: 1 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W XGA720, WXGA800 ABIs : armeabi-v7a ---------- id: 18 or "Google Inc.:Google APIs:14" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 4.0 (API level 14) Libraries: * com.android.future.usb.accessory (usb.jar) API for USB Accessories * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default) , QVGA, WXGA800 ABIs : armeabi-v7a C:\Program Files>cd \ C:\>rem --- The following are optional --- C:\>rem ---------------------------------- C:\>scons -v 'scons' is not recognized as an internal or external command, operable program or batch file. C:\>rem ---------------------------------- C:\>echo %HTTP_PROXY% %HTTP_PROXY% C:\>echo %HTTPS_PROXY% %HTTPS_PROXY% C:\>rem ---------------------------------- C:\>echo %SOCKS_PROXY% %SOCKS_PROXY% C:\>rem ----------------------------------Installed packages: !http://i.imgur.com/e2X7J.jpg!C:\>python ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\ avd.py "C:\Program Files (x86)\Android\android-sdk" [] C:\>python ProgramData\Titanium\mobilesdk\win32\1.7.5\android\avd.py "C:\Program Files (x86)\Android\android-sdk" []Anthony For the Home machine: From the diag output, your environment seems to be configured correctly. However, the python commands did not produce any output. Do you know why this is? Do the filesystem locations used in the commands actually exist? Cheers
I was wondering about that too. I can confirm that both the python scripts, and the folders being passed to them as arguments do exist.
Just to confirm, the home machine is running 64bit Windows 7, isn't it? Would you please run the following two commands, to verify that they are working correctly? Both should output the usage statement.
C:\>python ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\avd.py C:\>python ProgramData\Titanium\mobilesdk\win32\1.7.5\android\avd.pyTry this: * make a copy of the file,
ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\avd.py* edit the existingavd.pyfile as follows: ** on line 21, changedebug=Falsetodebug=True** runpython ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\avd.py "C:\Program Files (x86)\Android\android-sdk"again Post any output here. Then... * on line 22 (under the previous line you edited) ofProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\avd.py, add the following:As it's python, indents are important - make certain that it's indented inline with line 23 (the one you moved down to make space for the print command) * runpython ProgramData\Titanium\mobilesdk\win32\1.8.0.1.v20111116130058\android\avd.py "C:\Program Files (x86)\Android\android-sdk"again Post any output here. Thank youI'm really eager to get to the bottom of this issue for you, Anthony. When do you think you will have time to provide this information? Thanks
Anthony, I am marking this issue resolved. If you can provide the requested information, you are welcome to reopen it. Thank you
Hi Paul, I think I've had the same problem. I solved it by disabling the check for standard error output in run.py. I changed line 39 in run.py from if type(se) != types.NoneType and len(se) > 0: to if False and type(se) != types.NoneType and len(se) > 0: Now it can detect the android sdk an I can select the android version.
Caspar, the reporter has abandoned this ticket. Please raise a new one, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist). Thanks
Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance