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

Android min SDK 16 or 26 ? #171

Open
jayjac opened this issue Aug 31, 2020 · 5 comments
Open

Android min SDK 16 or 26 ? #171

jayjac opened this issue Aug 31, 2020 · 5 comments

Comments

@jayjac
Copy link

jayjac commented Aug 31, 2020

I was just wondering what the min sdk was for android? It says reverted back to API 16 but when building with minSdkVersion < 26, I get a manifest merging error saying I need to crank up the minSdkVersion to 26 or later.
In the meantime I have used the directive as a workaround.

Thanks guys.

@KiranC10
Copy link

KiranC10 commented Sep 8, 2020

Can you share your workaround? i am also facing the same issue

@jayjac
Copy link
Author

jayjac commented Sep 8, 2020

My bad, I pasted the XML and it was removed
Just add this to your manifest as a child of the manifest tag, that is outside of the application tag:

<uses-sdk tools:overrideLibrary="com.azure.reactnative.notificationhub"/>

@KiranC10
Copy link

KiranC10 commented Sep 8, 2020

i have added this line

</application>
<uses-sdk tools:overrideLibrary="com.azure.reactnative.notificationhub"/>

now the issue is

The prefix "tools" for attribute "tools:overrideLibrary" associated with an element type "uses-sdk" is not bound.

@jayjac
Copy link
Author

jayjac commented Sep 8, 2020

you need to add this

xmlns:tools="http://schemas.android.com/tools"

as an attribute to the manifest tag.

So you should end up with something like this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.yourpackage">

@KiranC10
Copy link

KiranC10 commented Sep 8, 2020

This Worked for me

Thank you @jayjac

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