I have a webview Android project. It's working fine enough on later Android Versions, but when I use API 25 or 26 (26 is Android 8 I believe), there's a certain file not being copied into the installed APK.
All the files for the HTML/JavaScript/CSS for my webview project are in the assets directory. The HTML is all inside of assets/index.html and the JavaScript files are all inside of assets/js, with some of the files being inside of a subfolder there, assets/js/v35/.
That latter folder has a specific file that isn't being brought into the APK, but only on older versions of Android. assets/js/v35/picks-singles-35.js.
The name of the file used to be longer, but I made it shorter thinking it might be a file name length problem, or path length problem. Making the file name shorter didn't help. I thought maybe the file's too big, but there are other .js files in that folder that are bigger that are getting copied in. I thought, maybe this file isn't being copied because the APK has reached its limit, so it's stopping any file after the last file it can load - so I changed the file name to being with 'a' so that it would be one of the first files to be included, rather than risk being excluded because it's later in the file-name list. That didn't help either.
So this file, picks-singles-35.js, isn't being included and it's apparently not because it's too big, the file name is too long, or because it's being excluded in favour of other files with earlier file names. I'm completely at a loss about why this file is being excluded on Android 8 devices, but not when it's an Android 11 device.