capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

After Capacitor 6 upgrade, all plugins are "not implemented on android"

Open Linksku opened this issue 1 year ago • 5 comments

Bug Report

I upgraded to Capacitor 6 yesterday, then spent half a day trying to fix "plugin is not implemented on android" errors.

Plugin(s)

I think it affects every plugin, but confirmed the error occurs with:

"@capacitor/clipboard": "^6.0.0", "@capacitor/geolocation": "^6.0.0", "@capacitor/share": "^6.0.0", "@capacitor/splash-screen": "^6.0.0", "@codetrix-studio/capacitor-google-auth": "^3.4.0-rc.1",

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 6.0.0
  @capacitor/core: 6.0.0
  @capacitor/android: 6.0.0
  @capacitor/ios: 6.0.0

Installed Dependencies:

  @capacitor/cli: 6.0.0
  @capacitor/core: 6.0.0
  @capacitor/android: 6.0.0
  @capacitor/ios: 6.0.0

[error] Xcode is not installed
[success] Android looking great! 👌

Platform(s)

Android 14

Current Behavior

Using any plugin triggers "[plugin name] plugin is not implemented on android"

Expected Behavior

No errors like in Capacitor 5

Other Technical Details

Additional Context

Tried:

  • npx cap migrate
  • npx cap sync android
  • Deleted android folder, then npx cap add android
  • Deleted node_modules, then yarn
  • Restarted Android Studio, clean project, reload from disk, rebuild, etc
  • Created a whole new project, npx cap init, npx cap add android, etc. Still doesn't work

If I use my old Android build with Capacitor 5 plugins, but load a webview containing the JS for Capacitor 6 plugins, every plugin still works. Plugins all work on iOS.

Linksku avatar Apr 28 '24 17:04 Linksku

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed.

Please see the Contributing Guide for how to create a Sample App.

Thanks! Ionitron 💙

Ionitron avatar May 13 '24 15:05 Ionitron

Please provide a sample demo app repo that we can test against that has this issue

IT-MikeS avatar May 13 '24 15:05 IT-MikeS

Possible diagnosis (and fix/workaround) can be found in this thread: https://github.com/ionic-team/capacitor/issues/7454#issuecomment-2144911637

Venryx avatar Jun 07 '24 12:06 Venryx

Is there already a solution for how to fix this? I have Android 14, and after updating the app to Capacitor 6, none of the plugins are visible. The app was built using redirect.

xitowzys avatar Oct 09 '24 13:10 xitowzys