breautek commented on issue #1010:
URL: 
https://github.com/apache/cordova-android/issues/1010#issuecomment-652749334


   > @breautek Could you setting the minSdkVersion of cordova-android to lower
   
   No.
   
   > Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than 
version 19 declared in library [:CordovaLib] 
/Users/jack/work-flux/FluxTmsApp/platforms/android/CordovaLib/build/intermediates/library_manifest/debug/AndroidManifest.xml
 as the library might be using APIs not available in 14
        Suggestion: use a compatible library with a minSdk of at most 14,
                or increase this project's minSdk version to at least 19,
                or use tools:overrideLibrary="org.apache.cordova" to force 
usage (may lead to runtime failures)
   
   This is the warning by android that you're using two libraries that aren't 
compatible (because the app min sdk is less than the framework's min sdk). You 
can suppress this by adding the following in your `config.xml`...
   
   ```xml
   <edit-config file="AndroidManifest.xml" target="/manifest" mode="merge">
       <manifest xmlns:tools="http://schemas.android.com/tools"; />
   </edit-config>
   <edit-config file="AndroidManifest.xml" target="/manifest/uses-sdk" 
mode="merge">
       <uses-sdk tools:overrideLibrary="org.apache.cordova" />
   </edit-config>
   ```
   
   I didn't test the above, but it should essentially add the `tools` schema 
and the `tools:overrideLibrary="org.apache.cordova"` override in the project's 
`AndroidManifest.xml` file.
   
   Like I said before, this will allow the project to build, but it may crash 
during runtime on those devices using lower API levels. It's up to you test. 
This would be an unsupported configuration, so you'll be on your own on issues 
related to using a lower min sdk.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to