Android Target Audience Changes After Cordova Platform Update

I am trying to upgrade an existing cordova project from android 3.6.4 to 3.7.2 ... The target specified in project.properties is set to "android-19" before updating. But when I do the update, it changes to "android-21".

mac $ cordova -v

4.3.0

mac $ cordova platform ls

Installed platforms: Android 3.6.4, browser 3.5.2, ios 3.7.0
  Available platforms: amazon-fireos, blackberry10, firefoxos

This is the command I use to update android cordova

Platform platform updates p> mac $ cordova android @ 3.7.2

Updating an Android project ...
  The Android project is now in version 3.7.2
  If you upgraded to version 3.2.0 and use the IDE, we now require that you import the CordovaLib library project.

mac $ cordova platform ls

Installed platforms: Android 3.7.2, browser 3.5.2, ios 3.7.0
  Available platforms: amazon-fireos, blackberry10, firefoxos

At this point, android / build.properties has target = android-21.

On my local computer, I have an Android SDK for Android up to 22, so it works fine locally. But in deployment window 19, that’s the limit. Therefore, it is not possible to update the SDK version.

Here's what happens if you manually change the target in build.properties to android-19

-compile:
    [javac] 98 /build/path/a/long/one/platform/android/CordovaLib/ ant -build/classes

[javac] //build/path/a/long/one/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewClient.java:35:

:
    [javac] import android.webkit.ClientCertRequest;
    [javac] ^
     [javac]: ClientCertRequest
    [javac] : android.webkit
    [javac]//build/path/a/long/one/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewClient.java:145: :
    [javac] public void onReceivedClientCertRequest ( WebView, ClientCertRequest)
    [javac] ^
     [javac]: ClientCertRequest
    [javac] : CordovaWebViewClient

..

, , . config.xml min target sdk.

<preference name="android-minSdkVersion" value="14"/>  
<preference name="android-targetSdkVersion" value="19" />  

AndroidManifest.xml, . whites - project.properties.
.

+4
1

, , - , 2 :

android/build.properties. 21 22. , cordova Android API 21 +... , .

SDK config.xml, , AndroidManifest.xml. , build.properties 21, Android, .

, .

0

All Articles