{ "id": "171805", "key": "TIMOB-26135", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-06-18T22:46:22.000+0000", "created": "2018-06-18T11:27:39.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20099", "name": "Release 7.2.0", "archived": false, "released": true, "releaseDate": "2018-06-14" } ], "issuelinks": [ { "id": "56620", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "171799", "key": "MOD-2432", "fields": { "summary": "Android: ti.cloudpush 5.1.0 is incompatible with ti.playservices", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56619", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "171797", "key": "TIMOB-26134", "fields": { "summary": "Android: Crashes when importing Ti.CloudPush in 7.2.0 SDK", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-06-18T22:46:22.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": "Using 7.2.0.SDK the cloud push module provides error on android device.\r\n\r\n*Test environment:*\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.1\r\n Architecture = 64bit\r\n CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 7.2.0.GA , \r\n Device: Huawei GR3 2017 Android\r\n \r\n *Test steps:*\r\n \r\n1.Create a classic project with Appcelerator cloud services enabled \r\n2.Add cloudpoush module on it\r\n3.Require cloudpoush module on app.js\r\n4.Run with android device and the app is failed to build with a error message\r\n\r\n[ERROR] : Failed to run dexer:\r\n\r\n*Sample Code:*\r\n{code}\r\n\r\n/**\r\n * Create a new `Ti.UI.TabGroup`.\r\n */\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\n/**\r\n * Add the two created tabs to the tabGroup object.\r\n */\r\ntabGroup.addTab(createTab(\"Tab 1\", \"I am Window 1\", \"assets/images/tab1.png\"));\r\ntabGroup.addTab(createTab(\"Tab 2\", \"I am Window 2\", \"assets/images/tab2.png\"));\r\n\r\n/**\r\n * Open the tabGroup\r\n */\r\ntabGroup.open();\r\n\r\n/**\r\n * Creates a new Tab and configures it.\r\n *\r\n * @param {String} title The title used in the `Ti.UI.Tab` and it's included `Ti.UI.Window`\r\n * @param {String} message The title displayed in the `Ti.UI.Label`\r\n * @return {String} icon The icon used in the `Ti.UI.Tab`\r\n */\r\nfunction createTab(title, message, icon) {\r\n var win = Ti.UI.createWindow({\r\n title: title,\r\n backgroundColor: '#fff'\r\n });\r\n\r\n var label = Ti.UI.createLabel({\r\n text: message,\r\n color: \"#333\",\r\n font: {\r\n fontSize: 20\r\n }\r\n });\r\n\r\n win.add(label);\r\n\r\n var tab = Ti.UI.createTab({\r\n title: title,\r\n icon: icon,\r\n window: win\r\n });\r\n\r\n return tab;\r\n}\r\n\r\n\r\n// added during app creation. this will automatically login to\r\n// ACS for your application and then fire an event (see below)\r\n// when connected or errored. if you do not use ACS in your\r\n// application as a client, you should remove this block\r\n(function(){\r\nvar cloudpush = require('ti.cloudpush');\r\nvar ACS = require('ti.cloud'),\r\n env = Ti.App.deployType.toLowerCase() === 'production' ? 'production' : 'development',\r\n username = Ti.App.Properties.getString('acs-username-'+env),\r\n password = Ti.App.Properties.getString('acs-password-'+env);\r\n\r\n// if not configured, just return\r\nif (!env || !username || !password) { return; }\r\n/**\r\n * Appcelerator Cloud (ACS) Admin User Login Logic\r\n *\r\n * fires login.success with the user as argument on success\r\n * fires login.failed with the result as argument on error\r\n */\r\nACS.Users.login({\r\n\tlogin:username,\r\n\tpassword:password,\r\n}, function(result){\r\n\tif (env==='development') {\r\n\t\tTi.API.info('ACS Login Results for environment `'+env+'`:');\r\n\t\tTi.API.info(result);\r\n\t}\r\n\tif (result && result.success && result.users && result.users.length){\r\n\t\tTi.App.fireEvent('login.success',result.users[0],env);\r\n\t} else {\r\n\t\tTi.App.fireEvent('login.failed',result,env);\r\n\t}\r\n});\r\n\r\n})();\r\n\r\n{code}\r\n\r\n*Console logs:*\r\n{code}\r\n[ERROR] : Failed to run dexer:\r\n[ERROR] : \r\n[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcelerator/aps/BuildConfig;\r\n[ERROR] : 1 error; aborting\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n", "attachment": [ { "id": "65266", "filename": "ti.cloudpush-android-5.1.2.zip", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2018-06-18T14:17:49.000+0000", "size": 184914, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android:Using 7.2.0.SDK the cloud push module provides error", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13.1\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 7.2.0.GA , \r\n Device: Huawei GR3 2017 Android", "comment": { "comments": [ { "id": "438472", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-06-18T13:45:08.000+0000", "updated": "2018-06-18T13:45:08.000+0000" }, { "id": "438479", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "[~ybanev],\r\nThanks for your reply. I have tested ti.cloudpush 5.1.2. and it's working as expected with 7.2.0.GA", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2018-06-18T16:00:03.000+0000", "updated": "2018-06-18T16:00:03.000+0000" }, { "id": "438495", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate, see TIMOB-26134", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-18T22:46:22.000+0000", "updated": "2018-06-18T22:46:22.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }