Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10199

Android SDK Version in config.xml doesn't propagate to project.properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • 5.4.1
    • cordova-android
    • None
    • Xubuntu 14.04

    Description

      I couldn't find the versions I have in the entry form, here they are:
      cordova -v: 5.4.1
      cordova-android@4.1.1

      My config.xml file contains the following section:

          <platform name="android">
              <preference name="android-minSdkVersion" value="19" />
              <preference name="android-targetSdkVersion" value="19" />
              <preference name="android-maxSdkVersion" value="19" />
              <allow-intent href="market:*" />
          </platform>
      

      After running cordova platform add android, the ./platforms/android/AndroidManifest.xml file contains the line

      <uses-sdk android:maxSdkVersion="19" android:minSdkVersion="19" android:targetSdkVersion="19" />

      But the ./platforms/android/project.properties file still contains target=android-22.

      Therefore running e.g. cordova build android fails with the following message:
      ERROR: Error: Please install Android target: "android-22".

      Attachments

        Activity

          People

            Unassigned Unassigned
            cgelinek_radlogic Christian Gelinek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: