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

fix android build errors #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaelknoch
Copy link

I was facing build errors on my local machine and on linux ci.

Task :react-native-search-bar:processDebugAndroidTestManifest FAILED
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-search-bar:processDebugAndroidTestManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 16 declared in library [com.facebook.react:react-native:0.62.2] /root/.gradle/caches/transforms-2/files-2.1/fb1b10f067852cd6c3178d2de46b96d8/AndroidManifest.xml as the library might be using APIs not available in 1
  	Suggestion: use a compatible library with a minSdk of at most 1,
  		or increase this project's minSdk version to at least 16,
  		or use tools:overrideLibrary="com.facebook.react" to force usage (may lead to runtime failures)

Setting a minSdkVersion in the library build.gradle fixed the issue. This also seems to be a best practice to avoid build issues. @umhan35

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

Successfully merging this pull request may close these issues.

1 participant