Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError when trying to retrieve card data #26

Open
anton8901 opened this issue Mar 12, 2021 · 4 comments
Open

NoSuchMethodError when trying to retrieve card data #26

anton8901 opened this issue Mar 12, 2021 · 4 comments

Comments

@anton8901
Copy link

anton8901 commented Mar 12, 2021

I've updated library from 1.1.0 to 1.5.0 and receiving the error:

java.lang.NoSuchMethodError: No direct method <init>(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V in class Lkotlin/jvm/internal/MutablePropertyReference1Impl; or its super classes (declaration of 'kotlin.jvm.internal.MutablePropertyReference1Impl' appears in /data/app/~~JCfdwcc6t5S0rBZFRM9kwg==/com.greencopper.markfest-NAGFsM4K__HtZuJTbPMc_A==/base.apk!classes4.dex)
        at sqip.internal.BaseCardEntryActivity.<clinit>(Unknown Source:12)
        at sqip.CardEntry.startCardEntryActivity(CardEntry.kt:39)
        at com.greencopper.android.goevent.modules.ordering.provider.square.SquareOrderingPaymentProvider.retrievePaymentData(SquareOrderingPaymentProvider.kt:92)
        at com.greencopper.android.goevent.modules.ordering.OrderingCartFragment.checkout(OrderingCartFragment.kt:140)
        at com.greencopper.android.goevent.modules.ordering.OrderingCartFragment.access$checkout(OrderingCartFragment.kt:37)
        at com.greencopper.android.goevent.modules.ordering.OrderingCartFragment$onCreateView$$inlined$run$lambda$1.onClick(OrderingCartFragment.kt:84)
        at android.view.View.performClick(View.java:7448)
        at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:992)
        at android.view.View.performClickInternal(View.java:7425)
        at android.view.View.access$3600(View.java:810)
        at android.view.View$PerformClick.run(View.java:28305)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

kotlin_version = '1.3.41'

i tried to change to 1.3.61 and 1.3.70 - the result is the same

I am testing on emulator Pixel 2 API 30

@anton8901
Copy link
Author

Downgraded to 1.4.0 and issue disappeared, so 1.5.0 has the issue

@StephenJosey
Copy link
Contributor

Can you clarify where you ran into this error? I ran the quickstart as-is, and it worked successfully.

@anton8901
Copy link
Author

anton8901 commented Mar 15, 2021

I updated from 1.1.0 to 1.5.0 it has several more issues, i fixed them, but this one is defenetly in library. Downgraded to 1.4.0 and this issue disappeared. Can you check what changed? It crashes when the method to retrieve card data invokes. I checked the parameters that I pass is correct

@pintu236
Copy link

I was also facing same issue working with 1.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants