[TIMOB-28423] Android: Windows - Unable to launch application on 2nd run without cleaning
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-04-21T16:42:33.000+0000 |
Affected Version/s | Release 10.0.0 |
Fix Version/s | Release 10.0.0 |
Components | Android |
Labels | n/a |
Reporter | Samir Mohammed |
Assignee | Gary Mathews |
Created | 2021-04-16T15:29:28.000+0000 |
Updated | 2021-04-21T16:42:33.000+0000 |
Description
When running an application more then once without cleaning the following error is shown, when using appc studio.
*Error:*
[ERROR] : Error: EBUSY: resource busy or locked, copyfile 'C:\Users\APPC\Documents\Appcelerator_Studio_Workspace\aa2\Resources\android\images\res-notlong-land-ldpi\default.png' -> 'C:\Users\APPC\Documents\Appcelerator_Studio_Workspace\aa2\build\android\app\src\main\res\drawable\background.png'
[ERROR] Application Installer abnormal process termination. Process exit value was 1
*Test Steps:*
Open Appc Studio
Create a new Alloy application
Run Application
Wait for application to boot up on the emulator
Stop build
Run the alloy application again
*Actual Result* Above error is shown *Expected result* Application should launch without issues *Note** If a clean is done then application runs without issues even on subsequent builds.Attachments
File | Date | Size |
---|---|---|
logsfff.txt | 2021-04-16T15:28:50.000+0000 | 43232 |
From looking at the debug log entries, the real issue appears to be "default.png" files from different density folders are all being copied to the same destination folder. I'm not seeing this on Mac.
FR passed, waiting on Jenkins build.
merged to master and 10_0_X branches.
[~gmathews] Looks like this ticket may have caused issues when installing to device.
[~gmathews], It's an issue with our
AssetCryptImpl.java
file here... https://github.com/appcelerator/titanium_mobile/blob/master/android/templates/build/AssetCryptImpl.java#L38 We need to change the template's line from this......to this...
We will need to test encrypted/device builds made on Windows to make sure the app's JS requires/imports work. The above will turn the back slashes '\' to forward slashes '/' which is needed in order for the app to find JS files under subdirectories We should also enable a "trace" log to see if the backslashes will cause any logging issues to the console. (We might already be okay, but it doesn't hurt to double check this.)
master: https://github.com/appcelerator/titanium_mobile/pull/12733
FR Passed, waiting on Jenkins build and backports.