GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-10T00:28:39.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 24, 2013 Sprint 24 Core, 2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0 |
Components | Android, CLI |
Labels | qe-3.2.0, qe-closed-3.2.0, qe-testadded, regression |
Reporter | Wilson Luu |
Assignee | Chris Barber |
Created | 2013-11-27T20:03:38.000+0000 |
Updated | 2014-02-21T21:18:35.000+0000 |
*Details*: On Windows 7 and 8, you cannot install an app to an Android device.
*Note:*
*1. This does not occur on Mavericks 10.9*
*2. This is a regression as this issue does not occur on Windows 7 with Titanium GA stack*
3. This issue still occurs with SDK FRI NOV 15, 2013 1:16:45 PM (3.2.0.v20131115115645); the oldest SDK I could get for Windows 7
*Steps to reproduce:*
1. On Windows 7, create a new Classic or Alloy project
2. Install to an Android device; here is the cli command:
"C:\Users\tester\AppData\Roaming\npm\titanium.CMD" "--no-colors" "--no-progress-bars" "--no-prompt" "build" "--platform" "android" "--sdk" "3.2.0.v20131127103245" "--log-level" "trace" "--target" "device" "--android-sdk" "C:\Users\tester\Desktop\Android\Android_SDK" "--device-id" "750f7955" "--skip-js-minify"
*Actual:* A "Failed to compile Java source files" (see attachment)
*Expected:* Should be able to install an app to an Android device regardless of Java 1.6 or Java 1.7
Reopening ticket. Bug is still reproducible on Windows 7, but getting a different error message: When C:\Program Files (x86)\Java\jdk1.7.0_45\bin is set in the System Variables PATH
When C:\Program Files (x86)\Java\jdk1.6.0_45\bin is set in the System Variables PATH
Tested on: Titanium Studio, build: 3.2.0.201311262027 SDK build: 3.2.0.v20131127194046 CLI: 3.2.0-beta Alloy: 1.3.0-beta Java: jdk1.6.0_45 (x86), jdk1.7.0_45 (x86) OS: Windows 7 Devices: Samsung Galaxy S3 (4.0.4)
[~wluu] Were you doing a device or dist-playstore build?
[~cbarber] To device.
Tried with SDK latest build "3.2.0.v20131203104847" and still getting the same issue -
Environment - Appc Studio - 3.2.0.201311272052 SDK - 3.2.0.v20131203104847 acs - 1.0.9 Alloy - 1.3.0-beta titanium - 3.2.0-beta titanium-code-processor - 1.1.0-beta OS - Windows 7
[~djha] The fix hasn't been merged yet. Check back in a day.
Used the latest SDK and Studio build but unable to install app on android device. Getting same issue as mentioned above. See also attached Studio console log file. Hence reopening this issue. Testing Environment - Appc Studio - 3.2.0.201312042306 SDK - 3.2.0.v20131204220843 acs - 1.0.9 Alloy - 1.3.0-beta titanium - 3.2.0-beta titanium-code-processor - 1.1.0-beta OS - Windows 7, Windows 8 Java: jdk1.7.0_45, jdk1.7.0_40
Verified the issue is still reproducible on our lab windows 7 & windows 8 machines. I get this error:
Environment: Titanium Studio: 3.2.0.201312042201 Ti SDK : 3.2.0.v20131204220843 Win 7 & win 8 both 64bit Alloy : 1.3.0-beta CLI - 3.2.0-beta Java version : 1.6.0_45 Samsung Galaxy S4 running android 4.2.2
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5075 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5076
Tried with latest SDK build 3.2.0.v20131206002446 which got just now but same result with same error message. Could not install app on android device.
Titanium_prep pull request: https://github.com/appcelerator/titanium_prep/pull/9 Titanium master pull request: https://github.com/appcelerator/titanium_mobile/pull/5098 Titanium 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5097
Tried with latest SDK build 3.2.0.v20131209000852 which we got today but same result with same error message. See the attached CLI log file.
Reopening based on Dhirendra's comments
I verified the issue on Win 7 & win 8 with both java 1.6.0_25 (32-bit) & java 1.7.0_45(32-bit) & could not reproduce the issue. The app built & launched successfully on the device. I have attached the studio logs for the successful runs for reference. Environment: Appcel Studio : 3.2.0.201312081316 Ti SDK : 3.2.0.v20131209000852 Mac OSX : 10.8.5 Alloy : 1.3.0-beta CLI - 3.2.0-beta Samsung Galaxy S4 running android 4.2.2 Java : 1.6.0_25(32-bit) & 1.7.0_45(32-bit)
Latest PRs with the Java 1.5 compatible code: Titanium_prep pull request: https://github.com/appcelerator/titanium_prep/pull/10 Titanium master pull request: https://github.com/appcelerator/titanium_mobile/pull/5102 Titanium 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5103
Tested on: Windows 7 Titanium SDK, build: 3.2.0.v20131210155650 Alloy: 1.3.0-cr CLI: 3.2.0-cr Anroid Device: Nexus 5 (4.4) Java: 1.6.0_45 (32-bit) No error thrown, android project builds successfully through CLI Closing