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

Can't compile Android app when targeting SDK version 31 #383

Closed
dpalou opened this issue Aug 23, 2022 · 2 comments
Closed

Can't compile Android app when targeting SDK version 31 #383

dpalou opened this issue Aug 23, 2022 · 2 comments

Comments

@dpalou
Copy link

dpalou commented Aug 23, 2022

The following error appears in console when I try to compile for Android using android-targetSdkVersion 31:

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.

This seems to be caused by the zxing-android-embedded library, see this issue: journeyapps/zxing-android-embedded#718

I tried to fix this using edit-config in my config.xml file, but since this is declared in a gradle dependency the edit-config is unable to find it.

Now Google Play requires apps to target SDK version 31, so this means we cannot publish our apps until this issue is fixed.

Has anyone found any workaround?

@dpalou
Copy link
Author

dpalou commented Aug 23, 2022

After further research I think the issue wasn't caused by this plugin, I think it was caused by phonegap-plugin-push so I'm closing this one, sorry for the noise.

@dpalou dpalou closed this as completed Aug 23, 2022
@sushibear
Copy link

I have the same problem. After deleting this plugin, building my App was no problem.

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

2 participants