I followed the steps to upgrade my project to Capacitor 8.
Everything works fine for testing and building on my local device or simulator, but when i try to generate a signed bundle i get the following errors :
Task :capacitor-preferences:minifyReleaseWithR8 FAILED
Supplied proguard configuration does not exist: /node_modules/@capacitor/preferences/android/proguard-rules.pro
AGPBI: {“kind”:“error”,“text”:“Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in node_modules/@capacitor/preferences/android/build/outputs/mapping/release/missing_rules.txt.”,“sources”:[{}]}
AGPBI: {“kind”:“error”,“text”:“Missing class com.getcapacitor.JSArray (referenced from: void com.capacitorjs.plugins.preferences.PreferencesPlugin.keys(com.getcapacitor.PluginCall) and 1 other context)\nMissing class com.getcapacitor.JSObject (referenced from: void com.capacitorjs.plugins.preferences.PreferencesPlugin.get(com.getcapacitor.PluginCall) and 2 other contexts)\nMissing class com.getcapacitor.Plugin (referenced from: com.capacitorjs.plugins.preferences.PreferencesPlugin)\nMissing class com.getcapacitor.PluginCall (referenced from: void com.capacitorjs.plugins.preferences.PreferencesPlugin.clear(com.getcapacitor.PluginCall) and 7 other contexts)\nMissing class com.getcapacitor.PluginMethod (referenced from: void com.capacitorjs.plugins.preferences.PreferencesPlugin.clear(com.getcapacitor.PluginCall) and 7 other contexts)\nMissing class com.getcapacitor.annotation.CapacitorPlugin (referenced from: com.capacitorjs.plugins.preferences.PreferencesPlugin)”,“sources”:[{}],“tool”:“R8”}
Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in node_modules/@capacitor/preferences/android/build/outputs/mapping/release/missing_rules.txt.
Missing class com.getcapacitor.JSArray (referenced from: void com.capacitorjs.plugins.preferences.PreferencesPlugin.keys(com.getcapacitor.PluginCall) and 1 other context)
Missing class com.getcapacitor.JSObject (referenced from: void com.capacitorjs.plugins.preferences.PreferencesPlugin.get(com.getcapacitor.PluginCall) and 2 other contexts)
Missing class com.getcapacitor.Plugin (referenced from: com.capacitorjs.plugins.preferences.PreferencesPlugin)
Missing class com.getcapacitor.PluginCall (referenced from: void com.capacitorjs.plugins.preferences.PreferencesPlugin.clear(com.getcapacitor.PluginCall) and 7 other contexts)
Missing class com.getcapacitor.PluginMethod (referenced from: void com.capacitorjs.plugins.preferences.PreferencesPlugin.clear(com.getcapacitor.PluginCall) and 7 other contexts)
Missing class com.getcapacitor.annotation.CapacitorPlugin (referenced from: com.capacitorjs.plugins.preferences.PreferencesPlugin)
Thanks a lot for any idea

