{ "id": "174990", "key": "TIMOB-27882", "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": [ { "id": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-08-14T18:03:13.000+0000", "created": "2020-05-06T15:01:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "build", "gradle" ], "versions": [ { "id": "20949", "name": "Release 9.0.1", "archived": false, "released": true, "releaseDate": "2020-04-16" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-08-14T18:03:13.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 creating a production build with two different SDKs the following error can be seen: \r\n{code:java}\r\n[ERROR] : Error: EBUSY: resource busy or locked, unlink 'C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\elloello\\build\\android\\app\\build\\intermediates\\metadata_library_dependencies_report\\release\\dependencies.pb'\r\n{code}\r\n\r\n*Note*: If you manually end the java-tm process you are able to build\r\n\r\n*Test Steps:*\r\n# Open Appcelerator studio \r\n# Create a new alloy application using SDK: 9.0.2.v20200505111803\r\n# Package using the Android store option in the drop down menu \r\n# Go through the prompts and select an output destination \r\n# Wait for .APK and .AAB to be created\r\n# Change SDK in the tiapp.xml to SDK: 9.1.0.v20200505112143\r\n# Package again using the Android store option in the drop down menu \r\n# Go through the prompts and select an output destination ", "attachment": [], "flagged": false, "summary": "Android: Unable to do a production build after switching SDK on Windows", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "APPC Studio: 6.0.0.202004031743\r\nSDK: 9.0.2.v20200505111803 and 9.1.0.v20200505112143 (latest)\r\n\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.18363\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 32.0GB\r\n\r\nNode.js\r\n Node.js Version = 12.16.1\r\n npm Version = 6.13.4\r\n\r\nAppcelerator CLI\r\n Installer = 5.0.0\r\n Core Package = 8.0.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.2\r\n node-appc Version = 0.2.49\r\n\r\nJava Development Kit\r\n Version = 10.0.1_10\r\n", "closedSprints": [ { "id": 1195, "state": "closed", "name": "2020 Sprint 10", "startDate": "2020-05-08T16:37:58.282Z", "endDate": "2020-05-22T16:37:00.000Z", "completeDate": "2020-05-21T15:26:11.089Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455383", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~smohammed], would you mind trying something out for me please?\r\n(I don't have access to a Windows machine right now.)\r\n\r\nPlease do this:\r\n# Do a \"production\" build with 9.0.2.\r\n# Open the Windows Command Prompt.\r\n# {{CD}} to directory: {{/build/android}}\r\n# Enter: {{gradlew :app:clean}}\r\n# Do a \"production\" build with 9.1.0.\r\n\r\nThe above checks to see if telling the gradle tools to clean the build folder will release the file lock for us. Thanks!", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-06T17:31:06.000+0000", "updated": "2020-05-06T17:31:06.000+0000" }, { "id": "455399", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jquick] Following those steps I was able to do a production build without any issues. \r\n\r\nConsole showed this output when doing: {{gradlew :app:clean}}\r\n{code:java}\r\nDeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.lean\r\nUse '--warning-mode all' to show the individual deprecation warnings.\r\nSee https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings\r\n\r\nBUILD SUCCESSFUL in 1s\r\n1 actionable task: 1 executed\r\n{code}\r\n\r\n\r\nIf I tried doing {{gradlew :app:clean}} after a failed production build (as mentioned in the ticket description) console would show this message:\r\n{code:java}\r\n'gradlew' is not recognized as an internal or external command\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-07T15:28:27.000+0000", "updated": "2020-05-07T15:28:27.000+0000" }, { "id": "455489", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Error is also seen when running a Hyperloop application. (In this instance first ran on a Sim and then a device straight after where the below error was seen) \r\n{code:java}\r\n[ERROR] : Error: EBUSY: resource busy or locked, unlink 'C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\aaaaanewapp\\build\\hyperloop\\android\\gradle\\wrapper\\gradle-wrapper.jar'\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-18T17:12:05.000+0000", "updated": "2020-05-18T17:12:05.000+0000" }, { "id": "455491", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/11712\r\n\r\n_*Edit:*_\r\n_The below PRs have been closed and are not needed._\r\n-PR (hyperloop):- https://github.com/appcelerator/hyperloop.next/pull/338\r\n-PR (9.0.x):- https://github.com/appcelerator/titanium_mobile/pull/11713\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-19T01:54:21.000+0000", "updated": "2020-05-20T19:07:47.000+0000" }, { "id": "455492", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~smohammed], theoretically, cleaning a module via {{appc ti clean}} should have a file locking issue on Windows too. Since I don't have a Windows machine available to me, I'm not able to confirm this. So, I added a \"Module Clean Test\" to my PR posted above.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-19T02:44:00.000+0000", "updated": "2020-05-19T02:44:00.000+0000" }, { "id": "455537", "author": { "name": "spulipakkam", "key": "spulipakkam", "displayName": "Srinivasan Pulipakkam", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving to Open Status", "updateAuthor": { "name": "spulipakkam", "key": "spulipakkam", "displayName": "Srinivasan Pulipakkam", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-21T15:39:15.000+0000", "updated": "2020-05-21T15:39:15.000+0000" }, { "id": "455834", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.1.0 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-06-17T16:00:29.000+0000", "updated": "2020-06-17T16:00:29.000+0000" }, { "id": "456475", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, Fix verified in SDK Version 9.1.0.v20200814072027\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/11712", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-14T18:02:53.000+0000", "updated": "2020-08-14T18:02:53.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }