Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28417] Android: Cannot find (JSON) file in incremental builds (10.x regression)

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2021-04-13T21:42:32.000+0000
Affected Version/sRelease 10.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeJoshua Quick
Created2021-04-12T08:13:08.000+0000
Updated2021-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.

Comments

  1. Joshua Quick 2021-04-13

    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 via require(). // Verifies generated "index.json" has given JSON file. * Alloy app loading via Ti.Filesystem.getFile(). * Alloy app loading JSON via require(). // 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.
  2. Hans Knöchel 2021-04-13

    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!

JSON Source