Home > OS >  Manifest merger failed with multiple errors, see logs after migrating the project to android 12
Manifest merger failed with multiple errors, see logs after migrating the project to android 12

Time:03-23

android:exported needs to be explicitly specified for element <activity#com.razorpay.CheckoutActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
C:\Users\naray\OneDrive\Desktop\Indiahaat\Indiahaat\app\src\main\AndroidManifest.xml:12:9-16:20 Error:
    android:exported needs to be explicitly specified for element <receiver#com.razorpay.RzpTokenReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

I have already tried to resolve this as from android 12 onwards I specify an explicit value for android:exported So I did likewise for the main and for the other activities and errors started to disappear also,

But in the case of RazorPay activities and Receivers, I am not able to find them in the project's manifest. I don't know where are they located so that I can explicitly mark the property of exported.

I am new to payment gateways.

Thanks in advance!!!

CodePudding user response:

You can find out the issues in the Merged Manifest and then resolve them. To navigate to the Merged Manifest, follow the steps:

AndroidManifest.xml -> Merged Manifest tab from the bottom. There you will see any error in Red color. I cannot solve your problem without your manifest. But I surely can & am giving you a clue

CodePudding user response:

Please update library to a newer version, It's fixed

Click here to see the issue on Github

  • Related