{ "id": "100293", "key": "TIMOB-10736", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-06-16T16:48:29.000+0000", "created": "2012-08-31T15:13:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "qe-and082012" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T21:29:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When packaging android modules on Linux, there is a build error.\r\n\r\nConsole:\r\n\r\n{code}\r\nBUILD FAILED\r\n/home/tester/.titanium/mobilesdk/linux/2.1.2.GA/module/android/build.xml:265: Compile failed; see the compiler error output for details.\r\n{code}\r\n\r\nThis is not a regression. This worked on Ubuntu 10.04 using ant 1.8, but reinstalling 1.8 caused the same problem.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create an Android Module.\r\n2. Package Android Module using ant, either from Studio or command line.\r\n\r\nActual Result:\r\n\r\nError.\r\n\r\nExpected Result:\r\n\r\nAndroid Module Packages.", "attachment": [ { "id": "30935", "filename": "console.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-31T15:13:11.000+0000", "size": 17605, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Modules: Module packaging fails on Linux", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.1, 2.1.2\r\nTitanium SDK: 2.1.1.GA, 2.1.2.GA\r\nOS: Ubuntu 10.04, Ubuntu 12.04\r\nAnt: 1.7.1, 1.8, 1.8.2", "comment": { "comments": [ { "id": "217252", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not occurring using Titanium Studio on Ubuntu 10.04, but it is occurring using Titanium Studio on Ubuntu 12.04.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-31T15:16:03.000+0000", "updated": "2012-08-31T15:16:03.000+0000" }, { "id": "217255", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reinstalling Studio fixed the issue in Titanium Studio Android Module Packaging on Ubuntu 12.04.\r\n\r\nThere is yet to be a solution for command line ant builds on android modules.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-31T15:45:42.000+0000", "updated": "2012-08-31T15:45:42.000+0000" }, { "id": "223398", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This appears to be an issue with needing to restart the os in order for ant to be properly recognized.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T17:32:07.000+0000", "updated": "2012-10-13T17:32:07.000+0000" }, { "id": "280298", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I am able to reproduce the issue.\n\nUsing the environment:\nAppcelerator Studio, build: 3.2.0.201311161724\nSDK: 3.2.0.v20131119142443\nalloy: 1.3.0\nacs: 1.0.7\nnpm: 1.3.2\ntitanium: 3.2.0-alpha\t\ntitanium-code-processor: 1.1.0-alpha\nOS: Ubuntu 12.04 (64-bit) LTS\n\nHers's the log\n{code}\nhome/global/.titanium/mobilesdk/linux/3.2.0.v20131119142443/module/android/build.xml:281: exec returned: 2\n\tat org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)\n\tat org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)\n\tat org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)\n\tat sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:616)\n\tat org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)\n\tat org.apache.tools.ant.Task.perform(Task.java:348)\n\tat org.apache.tools.ant.Target.execute(Target.java:392)\n\tat org.apache.tools.ant.Target.performTasks(Target.java:413)\n\tat org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)\n\tat org.apache.tools.ant.Project.executeTarget(Project.java:1368)\n\tat org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)\n\tat org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)\n\tat org.apache.tools.ant.Project.executeTargets(Project.java:1251)\n\tat org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)\n\tat org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:616)\n\tat org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)\n\tat com.appcelerator.titanium.android.internal.ui.launching.AndroidModulePackageLaunchConfigurationDelegate$PackagingProcess$1.run(AndroidModulePackageLaunchConfigurationDelegate.java:231)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)\nCaused by: /home/global/.titanium/mobilesdk/linux/3.2.0.v20131119142443/module/android/build.xml:281: exec returned: 2\n\tat org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)\n\tat org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)\n\tat org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)\n\tat org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)\n\tat sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:616)\n\tat org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)\n\tat org.apache.tools.ant.Task.perform(Task.java:348)\n\tat org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)\n\tat org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)\n\tat sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:616)\n\tat org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)\n\tat org.apache.tools.ant.Task.perform(Task.java:348)\n\tat org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)\n\t... 22 more\n\n{code}", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-20T06:35:44.000+0000", "updated": "2013-11-20T06:35:44.000+0000" }, { "id": "285147", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Module packing is working fine now\nTested on:\nAppcelerator Studio, build: 3.2.0.201312181652\nSDK: 3.2.0.v20131210191510\nalloy: 1.3.0-cr2\nacs: 1.0.10\nnpm: 1.3.2\ntitanium: 3.2.0-cr3\t\ntitanium-code-processor: 1.1.0-cr2\nOS: Ubuntu 12.04 (64-bit) LTS", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-19T07:28:13.000+0000", "updated": "2013-12-19T07:28:13.000+0000" }, { "id": "308610", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Issue is reproducible \r\nEnvironment used:\r\nTested on:\r\nSDK: 3.3.0.v20140611130912\r\nCLI version : 3.3.0-rc\r\nOS : Ubuntu(12.04), 32-bit\r\nAlloy: 1.4.0-beta2\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nTitanium Studio, build: 3.3.0.201406101332\r\ntitanium-code-processor: 1.1.1\r\n\r\nLogs are as follows\r\n{code}\r\nMESSAGE /home/global/.titanium/mobilesdk/linux/3.3.0.v20140611130912/module/android/build.xml:326: The following error occurred while executing this line:\r\n/home/global/.titanium/mobilesdk/linux/3.3.0.v20140611130912/module/android/build.xml:281: exec returned: 2\r\n!STACK 0\r\n/home/global/.titanium/mobilesdk/linux/3.3.0.v20140611130912/module/android/build.xml:326: The following error occurred while executing this line:\r\n/home/global/.titanium/mobilesdk/linux/3.3.0.v20140611130912/module/android/build.xml:281: exec returned: 2\r\n\tat org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)\r\n\tat org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)\r\n\tat org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)\r\n\tat sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)\r\n\tat org.apache.tools.ant.Task.perform(Task.java:348)\r\n\tat org.apache.tools.ant.Target.execute(Target.java:392)\r\n\tat org.apache.tools.ant.Target.performTasks(Target.java:413)\r\n\tat org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)\r\n\tat org.apache.tools.ant.Project.executeTarget(Project.java:1368)\r\n\tat org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)\r\n\tat org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)\r\n\tat org.apache.tools.ant.Project.executeTargets(Project.java:1251)\r\n\tat org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)\r\n\tat org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)\r\n\tat com.appcelerator.titanium.android.internal.ui.launching.AndroidModulePackageLaunchConfigurationDelegate$PackagingProcess$1.run(AndroidModulePackageLaunchConfigurationDelegate.java:279)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)\r\nCaused by: /home/global/.titanium/mobilesdk/linux/3.3.0.v20140611130912/module/android/build.xml:281: exec returned: 2\r\n\tat org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)\r\n\tat org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)\r\n\tat org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)\r\n\tat org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)\r\n\tat sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)\r\n\tat org.apache.tools.ant.Task.perform(Task.java:348)\r\n\tat org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)\r\n\tat org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)\r\n\tat sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)\r\n\tat org.apache.tools.ant.Task.perform(Task.java:348)\r\n\tat org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)\r\n\t... 22 more\r\n\r\n{code}\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-12T07:04:58.000+0000", "updated": "2014-06-12T07:04:58.000+0000" }, { "id": "308960", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on:\r\nUbuntu 14.04\r\nAppcelerator Studio, build: 3.3.0.201406111952\r\nTitanium Studio, build: 3.3.0.201406111946\r\nTitanium SDK, build: 3.3.0.v20140612101712\r\nTitanium CLI, build: 3.3.0-rc\r\nAlloy: 1.4.0-rc\r\nAndroid NDK: r9d\r\n\r\nThe issue [~pmishra] is hitting is due to missing dependancies.\r\n\r\nTo fix this issue, download the following:\r\nApache Ant: [Version 1.9.4|http://apache.claz.org//ant/binaries/apache-ant-1.9.4-bin.zip]\r\nPython: [Version 2.7.7|https://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz]\r\nsudo apt-get install gperf -y\r\n\r\nOnce downloaded, set each of them in your environment variables.\r\nTo set the environment variables, do the following:\r\nRun 'sudo pico ~/.bashrc' in your terminal\r\nAdd these lines to the end of the file:\r\n{code}\r\nexport PATH=\"\":$PATH\r\nexport PATH=\"\":$PATH\r\n{code}\r\n\r\nOnce all of these were set up I was able to successfully package the module from Studio and the CLI.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-13T20:04:25.000+0000", "updated": "2014-06-13T20:05:13.000+0000" }, { "id": "309140", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Based on comments, I believe this is invalid. Please let me know if you believe otherwise.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T16:48:29.000+0000", "updated": "2014-06-16T16:48:29.000+0000" }, { "id": "413983", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T21:29:59.000+0000", "updated": "2017-03-20T21:29:59.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }