bug: Error "Storage" plugin is not implemented on android
See original GitHub issueBug Report
Capacitor Version
Latest Dependencies:
@capacitor/cli: 3.4.1
@capacitor/core: 3.4.1
@capacitor/android: 3.4.1
@capacitor/ios: 3.4.1
Installed Dependencies:
@capacitor/cli: 3.2.5
@capacitor/ios: 3.3.1
@capacitor/core: 3.2.5
@capacitor/android: 3.2.5
Platform(s)
Android
Current Behavior
Hi, there’s errors from Sentry for Android. the plugin is working fine for both iOS and Android, just that there’s errors that reported on Sentry. Could not simulate the error, only received the error from Sentry. Below is the sentry log, capacitor config and Main Activity. The Main Activity is just extend the BridgeActivity. Thank you.
Sentry log
{
arguments: [
{
code: UNIMPLEMENTED,
message: "Storage" plugin is not implemented on android,
name: Error,
stack:
Error: "Storage" plugin is not implemented on android
at http://localhost/main.5b7ba08311886afb1ae8.js:1:1904058
at http://localhost/main.5b7ba08311886afb1ae8.js:1:1904349
at l.invoke (http://localhost/polyfills.2dc45994e1360d070fed.js:1:15322)
at Object.onInvoke (http://localhost/main.5b7ba08311886afb1ae8.js:1:1446849)
at l.invoke (http://localhost/polyfills.2dc45994e1360d070fed.js:1:15262)
at a.run (http://localhost/polyfills.2dc45994e1360d070fed.js:1:10734)
at http://localhost/polyfills.2dc45994e1360d070fed.js:1:21667
at l.invokeTask (http://localhost/polyfills.2dc45994e1360d070fed.js:1:15940)
at Object.onInvokeTask (http://localhost/main.5b7ba08311886afb1ae8.js:1:1446665)
at l.invokeTask (http://localhost/polyfills.2dc45994e1360d070fed.js:1:15861)
at a.runTask (http://localhost/polyfills.2dc45994e1360d070fed.js:1:11349)
at y (http://localhost/polyfills.2dc45994e1360d070fed.js:1:17934)
}
],
logger: console
}
capacitor config
{
webDir: 'dist/qnnect-desktop',
bundledWebRuntime: false,
loggingBehavior: 'production',
plugins: {
SplashScreen: {
launchAutoHide: false,
splashFullScreen: true,
layoutName: 'activity_splash',
useDialog: true,
},
LocalNotifications: {
smallIcon: 'notification_icon',
},
},
}
MainActivity.java
package com.example;
import com.getcapacitor.BridgeActivity;
public class MainActivity extends BridgeActivity {}
Expected Behavior
Should not have error reported.
Code Reproduction
Other Technical Details
npm --version
output: 6.14.5
node --version
output: v12.18.2
Additional Context
similar issue - https://github.com/ionic-team/capacitor/issues/4791#issuecomment-892729756
document found - https://capacitorjs.com/docs/updating/3-0#switch-to-automatic-android-plugin-loading
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Capacitor v3 plugins not working on android build
Storage plugin not worked after Ionic v3 upgrades from v2. It work after manually adding a plugin to MainActivity.java for me:
Read more >Troubleshooting Android Issues | Capacitor Documentation
On Android, this can happen if Capacitor doesn't find the plugins or can't inject its code into the WebView. First of all, make...
Read more >Ionic 6 Vue - Capacitor 4 Upgrade Error: "Storage" plugin is ...
It appear to be missing a “chunk” with no discernable connection to the missing storage plugin. We ended up disabling auto update to...
Read more >How To Fix "This Plugin is Not supported" Error in ... - YouTube
How To Fix "This Plugin is Not supported " Error in Google Chrome Browser on Android ?
Read more >Filesystem API Plugin for Capacitor and Cordova - Ionic.io
Cordova/Capacitor Filesystem API plugin presents a simple and intuitive interface for common file ... The external storage directory (Android only) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to resolve the issue by removing the compiled frontend files and plugins and running
npx cap sync android
again:If this is not enough, try running the
Clean project
action in Android StudioThanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.