Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15839] CLI: Android - On Windows, cannot install an app to an Android device

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-12-10T00:28:39.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 24, 2013 Sprint 24 Core, 2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0
ComponentsAndroid, CLI
Labelsqe-3.2.0, qe-closed-3.2.0, qe-testadded, regression
ReporterWilson Luu
AssigneeChris Barber
Created2013-11-27T20:03:38.000+0000
Updated2014-02-21T21:18:35.000+0000

Description

*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

Attachments

FileDateSize
cli.log2013-11-27T20:03:38.000+00002929
CLILog.txt2013-12-09T11:11:22.000+000016207
StudioConsoleLog.txt2013-12-05T11:06:10.000+00006646
WIN7 success run studio log- java 1.7.0_45.txt2013-12-09T22:49:32.000+0000244487
Win 8 success run studio log - java 1.6.0_25_.txt2013-12-09T22:49:58.000+000027581
WIN 8 success run studio log java 1.7.0_40.txt2013-12-09T22:49:46.000+0000240004

Comments

  1. Allen Yeung 2013-11-28

  2. Wilson Luu 2013-12-02

    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
       [INFO]  Building Java source files: C:\Program Files (x86)\Java\jdk1.7.0_45\bin\javac.exe "-encoding" "utf8" "-classpath" "C:\Users\tester\Desktop\Android\Android_SDK\platforms\android-19\android.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\kroll-v8.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-network.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\thirdparty.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-xml.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\jaxen-1.1.1.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-analytics.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-android.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\ti-commons-codec-1.3.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\kroll-common.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\titanium.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-app.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-ui.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\android-support-v4.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\nineoldandroids-appc-2.4.0.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-filesystem.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-media.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-locale.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\lib\titanium-verify.jar;ApplicationStylesheet.class;Monkey15839Activity.class;Monkey15839AppInfo.class;Monkey15839Application.class;R.class" "-d" "C:\Users\tester\Desktop\Titanium Studio\workspace\monkey15839\build\android\bin\classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@C:\Users\tester\Desktop\Titanium Studio\workspace\monkey15839\build\android\java-sources.txt"
       [ERROR] Failed to compile Java source files:
       [ERROR]
       [ERROR] warning: [options] bootstrap class path not set in conjunction with -source 1.6
       [ERROR] C:\Users\tester\Desktop\Titanium Studio\workspace\monkey15839\build\android\gen\com\appcelerator\monkey15839\Monkey15839Application.java:36: error: cannot find symbol
       [ERROR]             KrollAssetHelper.setAssetCrypt(new AssetCryptImpl());
       [ERROR]                                                ^
       [ERROR]   symbol:   class AssetCryptImpl
       [ERROR]   location: class Monkey15839Application
       [ERROR] 1 error
       [ERROR] 1 warning
       
    When C:\Program Files (x86)\Java\jdk1.6.0_45\bin is set in the System Variables PATH
       [INFO]  Building Java source files: C:\Program Files (x86)\Java\jdk1.6.0_45\bin\javac.exe "-encoding" "utf8" "-classpath" "C:\Users\tester\Desktop\Android\Android_SDK\platforms\android-19\android.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\kroll-v8.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-network.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\thirdparty.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-xml.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\jaxen-1.1.1.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-analytics.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-android.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\ti-commons-codec-1.3.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\kroll-common.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\titanium.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-app.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-ui.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\android-support-v4.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\nineoldandroids-appc-2.4.0.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-filesystem.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-media.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\modules\titanium-locale.jar;C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20131127194046\android\lib\titanium-verify.jar;ApplicationStylesheet.class;Monkey15839Activity.class;Monkey15839AppInfo.class;Monkey15839Application.class;R.class" "-d" "C:\Users\tester\Desktop\Titanium Studio\workspace\monkey15839\build\android\bin\classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@C:\Users\tester\Desktop\Titanium Studio\workspace\monkey15839\build\android\java-sources.txt"
       [ERROR] Failed to compile Java source files:
       [ERROR]
       [ERROR] C:\Users\tester\Desktop\Titanium Studio\workspace\monkey15839\build\android\gen\com\appcelerator\monkey15839\Monkey15839Application.java:36: cannot find symbol
       [ERROR] symbol  : class AssetCryptImpl
       [ERROR] location: class com.appcelerator.monkey15839.Monkey15839Application
       [ERROR]             KrollAssetHelper.setAssetCrypt(new AssetCryptImpl());
       [ERROR]                                                ^
       [ERROR] 1 error
       
    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)
  3. Chris Barber 2013-12-02

    [~wluu] Were you doing a device or dist-playstore build?
  4. Wilson Luu 2013-12-02

    [~cbarber] To device.
  5. Dhirendra Jha 2013-12-04

    Tried with SDK latest build "3.2.0.v20131203104847" and still getting the same issue -
       [ERROR] Failed to compile Java source files:
       [ERROR]
       [ERROR] C:\Users\Global\Documents\Appcelerator_Studio_Workspace\dfsdfsd\build\an
       droid\gen\com\appc\asd\DfsdfsdApplication.java:36: error: cannot find symbol
       [ERROR]             KrollAssetHelper.setAssetCrypt(new AssetCryptImpl());
       [ERROR]                                                ^
       [ERROR]   symbol:   class AssetCryptImpl
       [ERROR]   location: class DfsdfsdApplication
       [ERROR] 1 error
       
    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
  6. Chris Barber 2013-12-04

    [~djha] The fix hasn't been merged yet. Check back in a day.
  7. Dhirendra Jha 2013-12-05

    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
  8. Lokesh Choudhary 2013-12-05

    Verified the issue is still reproducible on our lab windows 7 & windows 8 machines. I get this error:
    [ERROR] :  Failed to compile Java source files:
       [ERROR] Application Installer abnormal process termination. Process exit value was 1
    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
  9. Chris Barber 2013-12-06

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5075 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5076
  10. Dhirendra Jha 2013-12-06

    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.
  11. Chris Barber 2013-12-09

    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
  12. Dhirendra Jha 2013-12-09

    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.
  13. Eric Merriman 2013-12-09

    Reopening based on Dhirendra's comments
  14. Lokesh Choudhary 2013-12-09

    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)
  15. Chris Barber 2013-12-10

    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
  16. Samuel Dowse 2013-12-11

    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

JSON Source