Discussions

Ask a Question
Back to All

Error: java.lang.NoSuchMethodError: No virtual method getPriceAmount()D in class Lcom/qonversion/android/sdk/dto/products/QProductPrice;...

I get this error when attempting to implement the new NoCodes paywall. I have tried updating the dependency, using both implementation("io.qonversion:no-codes:0.+") and implementation("io.qonversion.android.sdk:sdk:8.+"). This is my setup after the same initialization that works with the old builder:


val noCodesConfig = NoCodesConfig.Builder(context,context.getString(R.string.qonversion_api_key))
.build()
NoCodes.initialize(noCodesConfig)

//I then show the paywall witht:
NoCodes.shared.showScreen(context.getString(R.string.main_paywall_id))
        

I eliminated the NoCodesDelegate and ScreenCustomizationDelegate to try to pin down the issue.