You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/08/01 01:34:04 UTC

[jira] [Commented] (CB-9428) cordova platform update doesn't update the minSdk

    [ https://issues.apache.org/jira/browse/CB-9428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14649999#comment-14649999 ] 

ASF subversion and git services commented on CB-9428:
-----------------------------------------------------

Commit 8f7bc1ffbb7ec8238cfa13c164a177f59789dab8 in cordova-android's branch refs/heads/master from [~stevegill]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=8f7bc1f ]

CB-9428 update script now bumps up minSdkVersion to 14 if it is less than that.


> cordova platform update doesn't update the minSdk
> -------------------------------------------------
>
>                 Key: CB-9428
>                 URL: https://issues.apache.org/jira/browse/CB-9428
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 4.1.0
>            Reporter: jcesarmobile
>            Assignee: Steve Gill
>            Priority: Critical
>
> When you update an existing android app to cordova android 4.1.0, the minSdk on the project will not change but the minSdk on the cordovaLib will increase to 14, so the app won't build/run if the app minSdk was lower than 14
> STR
> 1. Create a cordova project (cordova create androidTest)
> 2. Go to cordova project (cd androidTest)
> 3. Add android platform (cordova platform add android)
> 4. Run the app (cordova run android). It will work
> 5. Update the project to use the latest cordova android (cordova platform update android@4.1.0)
> 6. Run the app again (cordova run android). It will fail with this error "Execution failed for task ':processDebugManifest'.
> > Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library /Users/dgc/Documents/proyectos/test/cordovatests/androidTest/platforms/android/build/intermediates/exploded-aar/android/CordovaLib/unspecified/debug/AndroidManifest.xml
>   	Suggestion: use tools:overrideLibrary="org.apache.cordova" to force usage"
> Expected result:
> cordova platform update android@4.1.0 should increase the minSdkVersion to 14 if it was lower than 14, or the upgrade doc should mention that the android-minSdkVersion preference should be set to 14 or greater



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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