You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "mciupka-dibit (via GitHub)" <gi...@apache.org> on 2025/08/25 16:00:48 UTC
[I] Migration from 13 to 14.0.1: LocalFileSystem not defined when deviceready fired [cordova-android]
mciupka-dibit opened a new issue, #1839:
URL: https://github.com/apache/cordova-android/issues/1839
# Bug Report
## Problem
### What is expected to happen?
App should launch regularly
### What does actually happen?
App crashes with white screen
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
As of August 31, 2025, Android apps must comply with targetSdkVersion 35. I therefore wanted to switch my Cordova Android app from cordova-android@13.0.0 to cordova-android@14.0.1. The app is built and deployed cleanly with “cordova run android,” but when starting the app, there is some kind of problem during initialization.
I use the cordova-file-plugin plugin and therefore need to detect whether the file system is available. The “deviceready” event also fires regularly. Here is the corresponding code:
<img width="1028" height="110" alt="Image" src="https://github.com/user-attachments/assets/64f0a47e-092e-4662-9687-1579722f41ec" />
When I start the app, I get the following error message:
<img width="485" height="62" alt="Image" src="https://github.com/user-attachments/assets/63df832b-1447-4897-8d5a-0f32163d17d1" />
Where could this behavior come from?
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
cordova run android
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
Apache Cordova Android 14.0.1
Google Pixel Pro 9
Android 16
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Migration from 13 to 14.0.1: LocalFileSystem not defined when deviceready fired [cordova-android]
Posted by "mciupka-dibit (via GitHub)" <gi...@apache.org>.
mciupka-dibit commented on issue #1839:
URL: https://github.com/apache/cordova-android/issues/1839#issuecomment-3223898298
@breautek Thank you very much for the quick tip about removing the plugins! Simply removing the platform wasn't enough. You actually had to delete all the plugins manually.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Migration from 13 to 14.0.1: LocalFileSystem not defined when deviceready fired [cordova-android]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1839:
URL: https://github.com/apache/cordova-android/issues/1839#issuecomment-3221129503
This is almost certainly a state issue with the development where the plugin is not being installed correctly for one reason or another.
**WARNING! DANGEROUS ACTION - SEE NOTE AT THE BOTTOM OF THIS COMMENT**
I'd recommend trying:
```
cordova platform remove android
rm -rf plugins/cordova-plugin-file
cordova platform add android
```
This will make sure that `cordova-plugin-file` is re-fetched and then installed. It would be worth double checking to make sure the plugin file version is compatible with cordova-android@14. Updating to the latest file plugin version will be ideal.
If the file plugin is experiencing this problem, then there are likely other plugins that might have the same problem, so it may be worth simply nuking the entire plugins folder to allow all plugins to be re-fetched.
```
cordova platform remove android
rm -rf plugins
cordova platform add android
```
Note that if you have manual changes inside the `plugins` folder, those changes will be lost. I am running under the assumption that you're trying the `plugins` folder as read-only, and that it's ignored in your source version control.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Migration from 13 to 14.0.1: LocalFileSystem not defined when deviceready fired [cordova-android]
Posted by "mciupka-dibit (via GitHub)" <gi...@apache.org>.
mciupka-dibit closed issue #1839: Migration from 13 to 14.0.1: LocalFileSystem not defined when deviceready fired
URL: https://github.com/apache/cordova-android/issues/1839
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Migration from 13 to 14.0.1: LocalFileSystem not defined when deviceready fired [cordova-android]
Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub commented on issue #1839:
URL: https://github.com/apache/cordova-android/issues/1839#issuecomment-3221024359
Try I fresh cordova app with the file plugin and check if the issue persists.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org