[TIMOB-28417] Android: Cannot find (JSON) file in incremental builds (10.x regression)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2021-04-13T21:42:32.000+0000 |
Affected Version/s | Release 10.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Joshua Quick |
Created | 2021-04-12T08:13:08.000+0000 |
Updated | 2021-04-13T21:42:32.000+0000 |
Description
When building our app with the latest SDK 10 build, the app crashes on incremental builds while trying to access a JSON file. The error log / exception is available [here](https://gist.github.com/hansemannn/93948614cdd0b0044b719d73ce265aa3). It's s regression caused over the last 2 weeks, which may help to track it down.
I'm not able to reproduce this when creating my own project and build it with "master" (10.1.0). I've done an incremental encrypted device build and unencrypted emulator build with: * Classic app loading via
Ti.Filesystem.getFile()
. * Classic app loading JSON viarequire()
. // Verifies generated "index.json" has given JSON file. * Alloy app loading viaTi.Filesystem.getFile()
. * Alloy app loading JSON viarequire()
. // Verifies generated "index.json" has given JSON file. I mean, I believe you. You do have a stacktrace. But this is something I know we tested a month ago when working on [this](https://github.com/appcelerator/titanium_mobile/pull/12516) PR because most apps embed JSON files. So, whatever you're running into, there's something more to it. I'll look into this some more tomorrow.It turned out that the regression was fixed in one of the last commits on 10_0_X last week, so it must have been broken exactly when I did the last build a few weeks ago. Therefore, this is not relevant anymore!