Error: Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=~~/androidSDK (recommended setting)
ANDROID_HOME=~~/androidSDK (DEPRECATED)
Using Android SDK: ~~/androidSDK
:wrapper
BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Task :app:preBuild UP-TO-DATE
Task :app:preReleaseBuild UP-TO-DATE
Task :CordovaLib:preBuild UP-TO-DATE
Task :CordovaLib:preReleaseBuild UP-TO-DATE
Task :CordovaLib:compileReleaseAidl NO-SOURCE
Task :app:compileReleaseAidl NO-SOURCE
Task :CordovaLib:packageReleaseRenderscript NO-SOURCE
Task :app:generateReleaseBuildConfig
Task :app:compileReleaseRenderscript NO-SOURCE
Task :app:javaPreCompileRelease
Task :app:generateReleaseResValues
Task :app:generateReleaseResources
Task :CordovaLib:compileReleaseRenderscript
Task :CordovaLib:generateReleaseResValues
Task :CordovaLib:generateReleaseResources
Task :CordovaLib:packageReleaseResources
Task :app:createReleaseCompatibleScreenManifests
Task :app:extractDeepLinksRelease
Task :CordovaLib:extractDeepLinksRelease
Task :CordovaLib:processReleaseManifest
Task :app:processReleaseManifest FAILED
See http:/~~/manifest-merger for more information about the manifest merger.
Task :app:mergeReleaseResources
12 actionable tasks: 12 executed
~~/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 21 cannot be smaller than version 22 declared in library [:CordovaLib] ~~/AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 22,
or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 22 declared in library [:CordovaLib] ~~/AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 22,
or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)
* 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.
* Get more help at https:/~~/help.gradle.org
BUILD FAILED in 7s
Command failed with exit code 1: ~~/gradlew cdvBuildRelease -b ~~/build.gradle