[TIMOB-19263] Android : Build fails for android with ti CLI 4.1.2 with error "ti run exited with error code 1"
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-30T17:07:27.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | Release 5.0.0 |
Components | Android, Tooling |
Labels | qe-5.0.0, regression |
Reporter | Lokesh Choudhary |
Assignee | Chris Barber |
Created | 2015-07-28T17:39:25.000+0000 |
Updated | 2015-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/emulatorActual 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
PR: https://github.com/appcelerator/titanium_mobile/pull/6993
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
Reopening to fix Affects Versions.
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(); });
[~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.