You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/09/14 09:15:16 UTC

[GitHub] sandeep2244 opened a new issue #498: Cordova Build minSdkVersion change to 19

sandeep2244 opened a new issue #498: Cordova Build minSdkVersion change to 19
URL: https://github.com/apache/cordova-android/issues/498
 
 
   Hello,
   
   
   I have android version 7.1.1 in my project
   
   after adding  android i build project using "cordova Build" command
   
   > And i got following error
   
   See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
   
   :app:processDebugManifest FAILED
   
           uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] C:\Users\trikonuser\TestAgain\WebCall_AS_tsim\webCall\platforms\android\CordovaLib\build\ intermediates\manifests\full\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 19,
   
                   or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)
   
   Now magic is in my files
   www/config.xml and xml/config.xml
    
   ```
   <preference name="android-minSdkVersion" value="19" />
   <preference name="android-targetSdkVersion" value="27"/>
   ```
   and main/AndroidManifest.xml  file I have put
   `
   <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="27" />`
   
   While My gradle file also contain
   
   > project.ext {
   > 
   >   defaultBuildToolsVersion="27.0.1" //String
   >   defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
   >   defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
   >   defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
   > }
   > 
   
   
   **### BUT NOW I RUN COMMAND :- CORDOVA BUILD it changes all config i mad automatically to previous as follows**
   www/config.xml and xml/config.xml
   ```
   <preference name="android-minSdkVersion" value="16" />
   <preference name="android-targetSdkVersion" value="27"/>
   ```
   and main/AndroidManifest.xml  file I have put
   `
   <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="27" />`
   
   How Cordova Build command run rechange agin to 16 if they already want to 19
   
   I used below phonegap version
   `> <preference name="phonegap-version" value="cli-6.3.0" />`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org