adaptyteam / AdaptySDK-Flutter

SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
96 stars 17 forks source link

Android is not running #63

Closed onuracikgozdusyeri closed 1 year ago

onuracikgozdusyeri commented 1 year ago

App is crashing after the splash screen. When i remove meta-data in androidmanifest.xml project is building. Do i need to add code block to java or kotlin native code block?

image
vladd-g commented 1 year ago

@onuracikgozdusyeri according to the error, looks like that on the Android side Billing Library v5 was resolved for some reason, but for now Adapty can only work with Billing Library v4.

Did you add v5 dependency manually, or where did it come from? I think you can remove it since Adapty adds it out of the box

onuracikgozdusyeri commented 1 year ago

@vladd-g i did not add v5 manually but it is come from in_app_purchases package. can it be problem?

when i add 'com.android.billingclient:billing:4.0.0' manually at build.gradle . i get same error

vladd-g commented 1 year ago

@onuracikgozdusyeri yes, it can. Is in_app_purchases package being used in your project after adding Adapty, or you can remove it?

As for manually adding, you can try the following:

implementation('com.android.billingclient:billing') {
        version {
            strictly '4.0.0'
        }
    }

But please check if nothing fails because of in_app_purchases package (if you don't remove it) since the compatibility may be broken

onuracikgozdusyeri commented 1 year ago

@vladd-g thanks that is worked but i am getting crash when i try reload func in_app_purchases package :( when will adapty be upgraded to v5 . Is there any chance of using v5 or v4 depending on the package?

vladd-g commented 1 year ago

@onuracikgozdusyeri Do you need in_app_purchases package to be included? Since you can make purchases with Adapty

onuracikgozdusyeri commented 1 year ago

@vladd-g yeah we need :)

vladd-g commented 1 year ago

@onuracikgozdusyeri

i am getting crash when i try reload func in_app_purchases package

Sorry, I didn't get, could you please specify what kind of crash are you getting and when?

Btw, is it an option to downgrade in_app_purchases down to the latest with v4 in its dependencies?

onuracikgozdusyeri commented 1 year ago

@vladd-g we removed iap package thanks