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 merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:react-native-calendar-events] /Users/tu/Desktop/HomePage/homepage-mobile/node_modules/react-native-calendar-events/android/build/intermediates/manifests/full/debug/AndroidManifest.xml as the library might be using APIs not available in 16 #213

Closed
tunm1228 opened this issue Jan 28, 2019 · 6 comments

Comments

@tunm1228
Copy link

Environment

Steps to Reproduce

Expected Behavior

Actual Behavior

@padvlad
Copy link

padvlad commented Jan 30, 2019

This issue has been introduced in #183. One of the reviews did raise a warning about the unnecessary change of minSdkVersion, but this has been ignored apparently.

@padvlad
Copy link

padvlad commented Jan 30, 2019

Adding this inside the application manifest should temporary fix the issue.

<uses-sdk
  android:minSdkVersion="16"
  tools:overrideLibrary="com.calendarevents" />

This may cause some issues in the future if some functionality is added that is not supported on pre-KitKat devices.
I believe that the minSdkVersion should be bumped down, since it not seems to be related to any real limitations, or the reasoning (if any) behind the bump from 16 to 19 should be documented.

@FonDorn
Copy link

FonDorn commented Feb 8, 2019

You also can add to build.gradle file next code:

ext {
    buildToolsVersion = "26.0.3"
    minSdkVersion = 19
    compileSdkVersion = 26
    targetSdkVersion = 26
    supportLibVersion = "26.1.0"
}

@padvlad
Copy link

padvlad commented Feb 11, 2019

@FonDorn Yes you could, but this would mean only supporting devices that run on SDK 19 or newer. The whole issue in my opinion is that this library removed the support for older SDK's with no apparent reason (and that lack of a reason is the main issue). For an app that is in production and already supports older phones this would mean some users (even if they are just a few of them) would loose support for future updates.

@wmcmahan
Copy link
Owner

Apologies, this was an unintentional change. A fix will be pushed to support lower SDKs in the next release. 👍

@rajeshwarpatlolla
Copy link

Adding the below line in config.xml file worked for me
<preference name="android-minSdkVersion" value="22" />

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

5 participants