Problem when trying to deploy and run android with version 6.0.0 of Capacitor and cordova-plugin-purchase 13.10.0.
Following error occurs, when trying to run Android Capacitor:
> Task :capacitor-cordova-android-plugins:compileDebugJavaWithJavac
C:\...\android\capacitor-cordova-android-plugins\src\main\java\cc\fovea\PurchasePlugin.java:307: error: method startServiceConnection in class PurchasePlugin cannot be applied to given types;
startServiceConnection(() -> {
^
required: Runnable,Runnable
found: ()->{ if ([...]; } }
reason: actual and formal argument lists differ in length
Note: C:\...\android\capacitor-cordova-android-plugins\src\main\java\cc\fovea\PurchasePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
> Task :capacitor-cordova-android-plugins:compileDebugJavaWithJavac FAILED
> Task :app:processDebugResources
FAILURE: Build failed with an exception.
Expected behavior
The Android deployment with Capacitor 6.0.0 works as with older Version Capacitor 5.x.
Observed behavior
Problem when trying to deploy and run android with version 6.0.0 of Capacitor and cordova-plugin-purchase 13.10.0.
Following error occurs, when trying to run Android Capacitor:
Expected behavior
The Android deployment with Capacitor 6.0.0 works as with older Version Capacitor 5.x.
System Info
Capacitor 6.0.0 Cordova-purchase-plugin 13.10.0