簡體   English   中英

添加RevenueCat后無法構建cordova項目

[英]Cannot build cordova project after add RevenueCat

我在使用 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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM