In android Java has this error: inflating class PaymentButtonContainer

Josepharaoh
Contributor
Contributor

Hi, I'm working on the PayPal integration on android. Everything is good till I run the app. I get this error.

 

"Error inflating class com.paypal.checkout.paymentbutton.PaymentButtonContainer"

 

I believe the problem come in the PaymentButtonContainer xml. I have the latest implementation in the Gradle file.

 

implementation'com.paypal.checkout:android-sdk:0.8.8'

Can anyone help me?

Login to Me Too
1 REPLY 1

Josepharaoh
Contributor
Contributor

I find the solution. I need to put the 

PayPalCheckout.setConfig
in the MainActivity
paymentButtonContainer.setup
in a new Activity.

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.