Hello,
I am upgrading a pretty old project build on Ionic/Cordova/Angular with latest packages, and I am encourteing an issue on Android.
I upgraded my project to ionic 6 and Angular 14. I also upgraded all plugins with @awesome-cordova-plugins.
RevenueCat plugins are also updated.
package.json:
```
"@awesome-cordova-plugins/purchases": "^6.2.0",
"cordova-plugin-purchases": "^3.3.3",
```
Everything works fine on iOS.
I ran into an issue when I try to build for Android
I upgraded minSdk to 31, and installed JDK 11.
Ionic documentation says we must use JDK 8, but I can’t build anything too because it needs sdk >= 31.
config.xml:
```
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="31" />
<preference name="android-compileSdkVersion" value="31" />
```
terminal:
```
:cordova] /Users/user/Sites/project/ionic/platforms/android/app/src/main/java/cc/fovea/PurchasePlugin.java:386: error: cannot find symbol
cordova] if (p.getSku().equals(sku))
(cordova] ^
acordova] symbol: method getSku()
bcordova] location: variable p of type Purchase
icordova] /Users/user/Sites/project/ionic/platforms/android/app/src/main/java/cc/fovea/PurchasePlugin.java:554: error: cannot find symbol
rcordova] params.setOldSku(oldSku, oldPurchaseToken);
(cordova] ^
rcordova] symbol: method setOldSku(String,String)
cordova] location: variable params of type Builder
icordova] /Users/user/Sites/project/ionic/platforms/android/app/src/main/java/cc/fovea/PurchasePlugin.java:587: error: cannot find symbol
.cordova] params.setReplaceSkusProrationMode(BillingFlowParams.ProrationMode.IMMEDIATE_WITH_TIME_PRORATION);
tcordova] ^
Ocordova] symbol: method setReplaceSkusProrationMode(int)
ycordova] location: variable params of type Builder
dcordova] /Users/user/Sites/project/ionic/platforms/android/app/src/main/java/cc/fovea/PurchasePlugin.java:589: error: cannot find symbol
Pcordova] params.setReplaceSkusProrationMode(BillingFlowParams.ProrationMode.IMMEDIATE_AND_CHARGE_PRORATED_PRICE);
mcordova] ^
Ccordova] symbol: method setReplaceSkusProrationMode(int)
[cordova] location: variable params of type Builder
icordova] /Users/user/Sites/project/ionic/platforms/android/app/src/main/java/cc/fovea/PurchasePlugin.java:591: error: cannot find symbol
jcordova] params.setReplaceSkusProrationMode(BillingFlowParams.ProrationMode.IMMEDIATE_WITHOUT_PRORATION);
ocordova] ^
icordova] symbol: method setReplaceSkusProrationMode(int)
cordova] location: variable params of type Builder
Pcordova] /Users/user/Sites/project/ionic/platforms/android/app/src/main/java/cc/fovea/PurchasePlugin.java:593: error: cannot find symbol
/cordova] params.setReplaceSkusProrationMode(BillingFlowParams.ProrationMode.DEFERRED);
cordova] ^
tcordova] symbol: method setReplaceSkusProrationMode(int)
cordova] location: variable params of type Builder
scordova] /Users/user/Sites/project/ionic/platforms/android/app/src/main/java/cc/fovea/PurchasePlugin.java:629: error: cannot find symbol
tcordova] + " Replace old SKU? " + (params.getOldSku() != null));
fcordova] ^
Kcordova] symbol: method getOldSku()
ocordova] location: variable params of type BillingFlowParams
cordova] Note: Some input files use or override a deprecated API.
ccordova] Note: Recompile with -Xlint:deprecation for details.
ecordova] Note: Some input files use unchecked or unsafe operations.
cordova] Note: Recompile with -Xlint:unchecked for details.
ecordova] 7 errors
ucordova]
acordova] FAILURE: Build failed with an exception.
```
Any idea what is causing this problem?