truecaller / flutter-sdk

Flutter plugin that uses Truecaller's Android SDK to provide mobile number verification service to verify users.
https://pub.dev/packages/truecaller_sdk
MIT License
24 stars 38 forks source link

Build failed with an exception #21

Open 8013853290 opened 3 years ago

8013853290 commented 3 years ago

Missing 'package' key attribute on element package at [com.truecaller.android.sdk:truecaller-sdk:2.6.0] AndroidManifest.xml:45:9-50

parth0907 commented 3 years ago

Hi @8013853290

It seems like you are using an older version of AGP(android gradle plugin). The issue that you are facing is because the older versions of AGP are not aware of this new element.

You can find the documentation by Google on this, here - https://android-developers.googleblog.com/2020/07/preparing-your-build-for-package-visibility-in-android-11.html

I would request you to try out this approach and let us know if it works. For further queries please feel free to reach us via our support channel https://developer.truecaller.com/support for a faster and dedicated response.

Hope this helps!

Regards, Parth