PaystackHQ / paystack-android

Paystack SDK for Android. Accept payments on Android
Apache License 2.0
126 stars 102 forks source link

App crashes when trying to initiate transaction locally #46

Closed NeoCompanion closed 6 years ago

NeoCompanion commented 6 years ago

Problem/Motivation

When I try to initiate a transaction locally, the app crashes with the error "Could not find class 'co.paystack.android.TransactionManager$1', referenced from method co.paystack.android.TransactionManager." My android studio version is 3.0.

ibrahimlawal commented 6 years ago

@mbmyke that's quite an old version. Could you do an update to: Android Studio 3.1.1 co.paystack.android:paystack:3.0.10

And let us know if that works fine.

Thanks!

NeoCompanion commented 6 years ago

Thanks Ibrahim. I have updated my android studio and now using co.paystack.android:paystack:3.0.10 but I am still getting the error. The error occurs when this is called: PaystackSdk.chargeCard(Payment.this, charge, new Paystack.TransactionCallback()..... Please why is the class 'co.paystack.android.TransactionManager not found?

NeoCompanion commented 6 years ago

I've found the problem, it has nothing to do with paystack. I was incompletely implementing MultiDex support, so some of my classes weren't in the proper dex file. Thank you Ibrahim

ibrahimlawal commented 6 years ago

Awesome. Glad that's resolved boss

-----Original Message----- From: "mbmyke" notifications@github.com Sent: ‎4/‎19/‎2018 20:02 To: "PaystackHQ/paystack-android" paystack-android@noreply.github.com Cc: "Ibrahim Lawal" ibrahim@paystack.co; "Comment" comment@noreply.github.com Subject: Re: [PaystackHQ/paystack-android] App crashes when trying to initiatetransaction locally (#46)

I've found the problem, it has nothing to do with paystack. I was incompletely implementing MultiDex support, so some of my classes weren't in the proper dex file. Thank you Ibrahim — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

steveamaza commented 6 years ago

Glad to hear @mbmyke. Can you go ahead and close the issue?