您好,我正在嘗試更新條帶,但是當我必須呼叫 PaymentSessionConfig 我的代碼塊時,因為 PaymentSessionConfig 類的同伴是私有的,我無法修改該類,因為它是只讀的,這是行:
mPaymentSession = PaymentSession (activity = summaryActivity, config = PaymentSessionConfig)
以及我收到的錯誤訊息:
Cannot access 'Companion': it is private in 'PaymentSessionConfig'
Type mismatch.
Required:
PaymentSessionConfig
Found:
PaymentSessionConfig.Companion
uj5u.com熱心網友回復:
您能分享一下您要更新的 SDK 版本的詳細資訊嗎?該遷移檔案涵蓋了很多的細節不同版本的變化。
您是否可以參考 some paymentSessionConfig,或者您config在這里是什么?
使用PaymentSessionConfig.Builder()( github )查看此示例實作
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/325936.html
