title: How to fix Execution failed for task ':app:processDebugManifest'
body: <p>I am facing this after installing react native image picker when using the npx react-native run-android command.</p>
  <p>D:\WEB SAYLANI\React Native CLI\AwesomeProject&gt;npx react-native run-android
  info Running jetifier to migrate libraries to AndroidX. You can disable it using &quot;--no-jetifier&quot; flag.
  Jetifier found 1222 file(s) to forward-jetify. Using 4 workers...
  info JS server already running.
  info Installing the app...</p>
  <blockquote>
  <p>Task :app:processDebugManifest FAILED</p>
  </blockquote>
  <p>See <a href="http://g.co/androidstudio/manifest-merger" rel="nofollow noreferrer">http://g.co/androidstudio/manifest-merger</a> for more information about the manifest merger.</p>
  <p>Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See <a href="https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings" rel="nofollow noreferrer">https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings</a>
  103 actionable tasks: 2 executed, 101 up-to-date
  D:\WEB SAYLANI\React Native CLI\AwesomeProject\android\app\src\debug\AndroidManifest.xml Error:
  uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [:react-native-image-picker] D:\WEB SAYLANI\React Native CLI\AwesomeProject\node_modules\react-native-image-picker\android\build\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
  Suggestion: use a compatible library with a minSdk of at most 16,
  or increase this project's minSdk version to at least 21,
  or use tools:overrideLibrary=&quot;com.imagepicker&quot; to force usage (may lead to runtime failures)</p>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li>What went wrong:
  Execution failed for task ':app:processDebugManifest'.</li>
  </ul>
  <blockquote>
  <p>Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [:react-native-image-picker] D:\WEB SAYLANI\React Native CLI\AwesomeProject\node_modules\react-native-image-picker\android\build\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
  Suggestion: use a compatible library with a minSdk of at most 16,
  or increase this project's minSdk version to at least 21,
  or use tools:overrideLibrary=&quot;com.imagepicker&quot; to force usage (may lead to runtime failures)</p>
  </blockquote>
  <ul>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p>
  </li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p>
  </li>
  </ul>
  <p>BUILD FAILED in 8s</p>
  <p>error Failed to install the app. Make sure you have the Android development environment set up: <a href="https://reactnative.dev/docs/environment-setup" rel="nofollow noreferrer">https://reactnative.dev/docs/environment-setup</a>. Run CLI with --verbose flag for more details.
  Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
  D:\WEB SAYLANI\React Native CLI\AwesomeProject\android\app\src\debug\AndroidManifest.xml Error:
  npm ERR! code 1
  npm ERR! path D:\WEB SAYLANI\React Native CLI\AwesomeProject
  npm ERR! command failed
  npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c react-native run-android</p>
  <p>npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\home\AppData\Local\npm-cache_logs\2021-01-02T18_04_25_264Z-debug.log</p>