ionic-team / capacitor-plugins

Official plugins for Capacitor ⚑️
488 stars 567 forks source link

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

Open Linksku opened 2 months ago

Linksku commented 2 months ago

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:

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.

Ionitron commented 2 months ago

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 πŸ’™

IT-MikeS commented 2 months ago

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

Venryx commented 1 month ago

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