Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19263] Android : Build fails for android with ti CLI 4.1.2 with error "ti run exited with error code 1"

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-07-30T17:07:27.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsAndroid, Tooling
Labelsqe-5.0.0, regression
ReporterLokesh Choudhary
AssigneeChris Barber
Created2015-07-28T17:39:25.000+0000
Updated2015-07-31T17:21:15.000+0000

Description

*The error is due to titanium CLI 4.1.2 as seen in the error logs.* *Reproducible from appc CLI 4.2.0-1 as well.*

Steps To Reproduce:

1. Create an app for android. 2. Build for android device/emulator

Actual Results:

1. The build fails with error:
[ERROR] :  Failed to compile Java source files:
[ERROR] :  
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/new_workspace/Zclassic/build/android/gen/com/app/zclassic/ZclassicApplication.java:48: error: cannot find symbol
[ERROR] :  		stylesheet = new ApplicationStylesheet();
[ERROR] :  		                 ^
[ERROR] :    symbol:   class ApplicationStylesheet
[ERROR] :    location: class ZclassicApplication
[ERROR] :  Note: /Users/lokeshchoudhary/Desktop/workspaces/new_workspace/Zclassic/build/android/gen/com/app/zclassic/AssetCryptImpl.java uses unchecked or unsafe operations.
[ERROR] :  Note: Recompile with -Xlint:unchecked for details.
[ERROR] :  1 error
TRACE  | titanium exited with exit code 1
ERROR  | Error: ti run exited with error code 1
    at ChildProcess.<anonymous> (/Users/lokeshchoudhary/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
[ERROR] Application Installer abnormal process termination. Process exit value was 1

Expected Results:

1. The build should be successful.

Comments

  1. Chris Barber 2015-07-29

    PR: https://github.com/appcelerator/titanium_mobile/pull/6993
  2. Lokesh Choudhary 2015-07-29

    Verified the fix. Android builds successfully. Closing. Environment: Appc Studio : 4.1.1.201507141126 Ti SDK : 4.2.0.v20150729134419 Ti CLI : 4.0.1 Alloy : 1.6.2 MAC Yosemite : 10.10.4 Appc NPM : 4.1.0 Appc CLI : 4.2.0-1 Node: v0.10.37 Nexus 5 - Android 5.1.1
  3. Wilson Luu 2015-07-30

    Reopening to fix Affects Versions.
  4. chidambaram 2015-07-31

    Lokesh, Below code work in iOS? Because i want to do something when listview scroll up/down. Please help to solve this. (iOS). listView.addEventListener('scrollstart', function(e) { listScrolling(); });
  5. Lokesh Choudhary 2015-07-31

    [~chidambaramsami]- This ticket is closed & is specific for android. This ticket might not be a right place for your comment. If you feel there is an issue with listview in IOS then please file a seperate jira ticket for it & explain what you are seeing, if possible provide a working sample code for the issue. Thanks.

JSON Source