{ "id": "173069", "key": "MOD-2498", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20385", "name": "Release 8.0.0", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-04T16:18:11.000+0000", "created": "2019-02-27T13:50:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "17524", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-14" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-08T06:18:00.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": "12140", "name": "CloudPush" } ], "description": "Hello!\r\nI have updated my titanium sdk to the last version (7.5.1), but after that when I try to compile my app with to ti.cloudpush (version 6.0.0) on android device I get this error:\r\n{code}\r\n[ERROR] : Conflicting jar files detected:\r\n[ERROR] : \r\n[ERROR] : The following modules have different \"cloudpush.jar\" files\r\n[ERROR] : ti.cloudpush (version 6.0.0) (hash=eb23d9d16fd2d1364dc1bd53bc008b28)\r\n[ERROR] : ti.cloudpush (version 6.0.0) (hash=5a67a29af933c56d2b30a310d40553fd)\r\n[ERROR] : \r\n[ERROR] : You can either select a version of these modules where the conflicting jar file is the same or you\r\n[ERROR] : can try copying the jar file from one module's \"lib\" folder to the other module's \"lib\" folder.\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\n*Steps to reproduce*\r\n1. Create a new demo project with 7.5.1.GA\r\n2. Included ti.cloudpush (version 6.0.0) and ti.cloud.\r\n3. Add the following code and build on Android devices.\r\n{code}\r\nvar Cloud = require('ti.cloud');\r\nvar CloudPush = require('ti.cloudpush');\r\nvar deviceToken = null;\r\n\r\n// login info for test propose\r\nvar user = \"\";\r\nvar password = \"\";\r\nvar channel = \"TestChannel\";\r\nvar platform = \"ios\";\r\n\r\n// Differern process for Android and iOS platform\r\nif (Ti.Platform.name == 'android') {\r\n\tplatform = \"android\";\r\n\t\r\n\tCloudPush.retrieveDeviceToken({\r\n\t\tsuccess: deviceTokenSuccess,\r\n\t\terror: deviceTokenError\r\n\t});\r\n\t\r\n\tCloudPush.addEventListener('callback', function(evt) {\r\n\t\talert('Received push: ' + JSON.stringify(evt));\r\n \tTi.API.info('Received push: ' + JSON.stringify(evt));\r\n\t});\r\n\t\r\n} else if (parseInt(Ti.Platform.version.split(\".\")[0]) >= 8) {\r\n Ti.App.iOS.addEventListener('usernotificationsettings', function registerForPush() {\r\n \r\n Ti.App.iOS.removeEventListener('usernotificationsettings', registerForPush); \r\n \r\n Ti.Network.registerForPushNotifications({\r\n success: deviceTokenSuccess,\r\n error: deviceTokenError,\r\n callback: receivePush\r\n });\r\n });\r\n \r\n Ti.App.iOS.registerUserNotificationSettings({\r\n\t types: [\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT,\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND,\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE\r\n ]\r\n });\r\n} else {\r\n\tTi.Network.registerForPushNotifications({\r\n types: [\r\n Ti.Network.NOTIFICATION_TYPE_BADGE,\r\n Ti.Network.NOTIFICATION_TYPE_ALERT,\r\n Ti.Network.NOTIFICATION_TYPE_SOUND\r\n ],\r\n success: deviceTokenSuccess,\r\n error: deviceTokenError,\r\n callback: receivePush\r\n });\r\n}\r\n\r\nfunction loginUser() {\r\n\tCloud.Users.login({\r\n login: user,\r\n password: password\r\n }, function (e) {\r\n if (e.success) {\r\n Ti.API.info('Login successful');\r\n alert(\"Login successful\");\r\n } else {\r\n Ti.API.info('Error:\\n' +\r\n ((e.error && e.message) || JSON.stringify(e)));\r\n }\r\n });\r\n}\r\n\r\nfunction subscribeToChannel() {\r\n\tCloud.PushNotifications.subscribeToken({\r\n channel: channel,\r\n device_token: deviceToken,\r\n type: platform\r\n }, function (e) {\r\n if (e.success) {\r\n \talert('Subscribed');\r\n Ti.API.info('Subscribed');\r\n } else {\r\n Ti.API.info('Error:\\n' +\r\n ((e.error && e.message) || JSON.stringify(e)));\r\n }\r\n });\r\n}\r\n\r\nfunction unsubscribeToChannel() {\r\n\tCloud.PushNotifications.unsubscribeToken({\r\n channel: channel,\r\n device_token: deviceToken\r\n }, function (e) {\r\n if (e.success) {\r\n Ti.API.info('Unsubscribed');\r\n } else {\r\n Ti.API.info('Error:\\n' +\r\n ((e.error && e.message) || JSON.stringify(e)));\r\n }\r\n });;\r\n}\r\n\r\nfunction deviceTokenSuccess(e) {\r\n\tdeviceToken = e.deviceToken;\r\n\tTi.API.info(\"Device Registered Successfully.\\nThe Device Token is: \" + deviceToken);\r\n\tloginUser();\r\n}\r\n\r\nfunction deviceTokenError(e) {\r\n\talert(\"Failed to register for push notifications!\\nThe Error is: \" + e.error);\r\n\tTi.API.info(\"Failed to register for push notifications!\\nThe Error is: \" + e.error);\r\n}\r\n\r\nfunction receivePush(e) {\r\n alert('Received push: ' + JSON.stringify(e));\r\n Ti.API.info('Received push: ' + JSON.stringify(e));\r\n}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n layout:'vertical',\r\n exitOnClose: true\r\n});\r\n \r\nvar subscribe = Ti.UI.createButton({\r\n\ttitle:'Subscribe',\r\n\ttop: 100,\r\n\tleft: 100\r\n});\r\nsubscribe.addEventListener('click', subscribeToChannel);\r\nwin.add(subscribe);\r\n \r\nvar unsubscribe = Ti.UI.createButton({\r\n\ttitle:'Unsubscribe',\r\n\ttop: 150,\r\n\tleft: 100\r\n});\r\nunsubscribe.addEventListener('click', unsubscribeToChannel);\r\nwin.add(unsubscribe);\r\n \r\nwin.open();\r\n{code}\r\n\r\nTest Environment:\r\n1. TiSDK 7.5.1.GA\r\n2. Ti.cloudpush (version 6.0.0)\r\n3. Android 8 \r\n\r\nNote: We don't have any other module in our project. You can reproduce this error with cloudpush module only. \r\n\r\n\r\nThanks \r\n\r\n", "attachment": [], "flagged": false, "summary": "ti.cloudpush (version 6.0.0) : Conflicting jar files with titanium sdk 7.5.1.GA", "creator": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "subtasks": [], "reporter": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13.4\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 10.14.1\r\n npm Version = 6.8.0\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 7.5.1.GA", "closedSprints": [ { "id": 1118, "state": "closed", "name": "2019 Sprint 5", "startDate": "2019-02-24T18:36:06.435Z", "endDate": "2019-03-08T18:36:00.000Z", "completeDate": "2019-03-07T22:19:47.057Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "446406", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ti.cloudpush: https://github.com/appcelerator-modules/cloudpush/releases/download/android-6.0.1/ti.cloudpush-android-6.0.1.zip", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-28T18:22:51.000+0000", "updated": "2019-02-28T18:22:51.000+0000" }, { "id": "446428", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10737\r\n7_5_X: https://github.com/appcelerator/titanium_mobile/pull/10738", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-28T22:49:01.000+0000", "updated": "2019-02-28T22:49:01.000+0000" }, { "id": "446494", "author": { "name": "mr.arbindbhagat", "key": "mr.arbindbhagat", "displayName": "Arbind", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "I am also having the exact same issue.", "updateAuthor": { "name": "mr.arbindbhagat", "key": "mr.arbindbhagat", "displayName": "Arbind", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2019-03-04T16:18:11.000+0000", "updated": "2019-03-04T16:18:11.000+0000" }, { "id": "446598", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.5.2.v20190304130819 & 8.0.0.v20190306054146.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-06T21:53:29.000+0000", "updated": "2019-03-06T21:53:29.000+0000" }, { "id": "446602", "author": { "name": "mr.arbindbhagat", "key": "mr.arbindbhagat", "displayName": "Arbind", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "I just now tested a blank project with cloudpush module in it, and it gets stuck at the step \"Running Dexer\" .\r\nSDK 7.5.2.v20190304130819\r\n\r\nSo, it doesn't look like its fixed.", "updateAuthor": { "name": "mr.arbindbhagat", "key": "mr.arbindbhagat", "displayName": "Arbind", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2019-03-07T01:23:33.000+0000", "updated": "2019-03-07T01:23:33.000+0000" }, { "id": "446619", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mr.arbindbhagat] I cannot reproduce your issue. I'm using {{7.5.2.v20190306131103}} with {{ti.cloudpush-6.0.1}} and able to build successfully.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-07T18:46:18.000+0000", "updated": "2019-03-07T18:46:18.000+0000" }, { "id": "446637", "author": { "name": "mr.arbindbhagat", "key": "mr.arbindbhagat", "displayName": "Arbind", "active": true, "timeZone": "Europe/Copenhagen" }, "updateAuthor": { "name": "mr.arbindbhagat", "key": "mr.arbindbhagat", "displayName": "Arbind", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2019-03-08T06:18:00.000+0000", "updated": "2019-03-08T06:18:00.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }