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

Manifest merge error when updating my app to compileSdkVersion 31 #39

Open
MerlijnClaeys opened this issue Dec 1, 2021 · 0 comments
Open

Comments

@MerlijnClaeys
Copy link

MerlijnClaeys commented Dec 1, 2021

I'm using this library in my android app. When upgrading the compileSdkVersion to 31 i get the following error:

Manifest merger failed : android:exported needs to be explicitly specified for . 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.

After doing some research i found the following stack overflow post: https://stackoverflow.com/a/69347425/12912676. After following what the comment I linked to suggests, I found that this library has services, receivers and activities without the android:exported attribute in your manifest.

I was able to workaround this issue by overriding the receiver, service or activity in my own android manifest and adding the android:exported and tools:node="merge" attribute to it.

<receiver android:name="com.pax.market.android.app.sdk.DownloadParamReceiver" android:exported="false" tools:node="merge" />

But i would like to see this changed in this library so I don't have to do this. By adding the android:exported="true|false" to your services, receivers and activities in your manifest should resolve the issues on my side.

Thanks in advance.
Feel free to ask for more info if you need it.

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

1 participant