添加RevenueCat后无法构建cordova项目

问题描述

我在使用RevenueCat构建项目时遇到问题。
我是通过以下手册为Apache Cordova安装的:https://docs.revenuecat.com/docs/cordova
但是现在构建完成后返回:

> Task :app:processDebugManifest UP-TO-DATE
> Task :app:processDebugResources
/home/martin/Projects/LearnEnglishWordsV3/cordova/platforms/android/app/src/main/java/com/revenuecat/purchases/PurchasesPlugin.java:38: error: cannot find symbol
        Purchases.getSharedInstance().setUpdatedPurchaserInfoListener(new UpdatedPurchaserInfoListener() {
                                                                          ^
  symbol:   class UpdatedPurchaserInfoListener
  location: class PurchasesPlugin
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/martin/Projects/LearnEnglishWordsV3/cordova/platforms/android/app/src/main/java/com/revenuecat/purchases/PurchasesPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build Failed with an exception.
* What went wrong:
Execution Failed for task ':app:compileDebugJavaWithJavac'.
> Compilation Failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD Failed in 12s

您知道我该怎么办吗?

解决方法

现在在版本1.2.2更新后已修复
版本1.2.1错误:https://github.com/RevenueCat/cordova-plugin-purchases/pull/54