1 Reply Latest reply on Nov 25, 2016 10:27 AM by vendasv46176141

    phonegap api level 14

    vendasv46176141 Level 1

      Hello I compiled today my project after the changes of the plugins (15th November) and when specifying the minimum sdk I noticed that in the log it did not compile in the lightweight api that I defined. This, an error occurs in my app on the Samsung Tablet tab 3 (android version 4.2.2). I own a build prior to November 15th that works properly on the Samsung Tablet tab3 My compilation: https://build.phonegap.com/apps/2367688/ my config.xml

      <preference name="permissions" value="none" />
          <preference name="phonegap-version" value="3.7.0" />
          <preference name="orientation" value="default" />
          <preference name="target-device" value="universal" />
          <preference name="fullscreen" value="false" />
          <preference name="webviewbounce" value="true" />
          <preference name="prerendered-icon" value="true" />
          <preference name="stay-in-webview" value="false" />
          <preference name="ios-statusbarstyle" value="black-opaque" />
          <preference name="detect-data-types" value="true" />
          <preference name="exit-on-suspend" value="false" />
          <preference name="show-splash-screen-spinner" value="true" />
          <preference name="auto-hide-splash-screen" value="true" />
          <preference name="disable-cursor" value="false" />
          <preference name="android-installLocation" value="auto" />
        <preference name="KeepRunning" value="true"/>
        <preference name="AndroidPersistentFileLocation" value="Compatibility" />
        <preference name="android-build-tool" value="gradle" />
        <plugin name="cordova-plugin-dialogs" spec="~1.3.0" />
        <plugin name="cordova-plugin-splashscreen" spec="~4.0.0" />
        <plugin name="cordova-plugin-vibration" spec="~2.1.2" />
        <plugin name="cordova-plugin-device" spec="~1.1.3" />
        <plugin name="cordova-plugin-network-information" spec="~1.3.0" />
        <plugin name="phonegap-plugin-push-deprecated" source="npm"/>
        <plugin name="cordova-plugin-inappbrowser" spec="~1.5.0" />
        <plugin name="cordova-plugin-geolocation" spec="~2.4.0" />
        <plugin name="cordova-plugin-x-toast" source="npm"/>
        <plugin name="cordova-plugin-barcodescanner" source="npm"/>
        <plugin name="cordova-plugin-media" spec="~2.4.0" />
        <icon src="icon.png" />
        <platform name="android">
        <preference name="AndroidLaunchMode" value="singleTop"/>
        <preference name="android-minSdkVersion" value="14" />
        <preference name="android-targetSdkVersion" value="14" />
           <icon src="icon.png" />
        <icon src="res/screen/android/screen-mdpi-portrait.png" density="mdpi" />
        <icon src="res/screen/android/screen-hdpi-portrait.png" density="hdpi" />
        <icon src="res/screen/android/screen-xhdpi-portrait.png" density="xhdpi" />
        </platform>
        <access origin="*" />
      

       

      my log phonegap

      Build Date: 2016-11-24 18:01:47 +0000
      --------------------------------------------------------------------------------
      PLUGIN OUTPUT
      --------------------------------------------------------------------------------
      Fetching plugin "cordova-plugin-dialogs@~1.3.0" via npm
      Installing "cordova-plugin-dialogs" at "1.3.0" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-splashscreen@~4.0.0" via npm
      Installing "cordova-plugin-splashscreen" at "4.0.0" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-vibration@~2.1.2" via npm
      Installing "cordova-plugin-vibration" at "2.1.2" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-device@~1.1.3" via npm
      Installing "cordova-plugin-device" at "1.1.3" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-network-information@~1.3.0" via npm
      Installing "cordova-plugin-network-information" at "1.3.0" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "phonegap-plugin-push-deprecated" via npm
      Installing "phonegap-plugin-push-deprecated" at "2.5.0-pgb-1" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-inappbrowser@~1.5.0" via npm
      Installing "cordova-plugin-inappbrowser" at "1.5.0" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-geolocation@~2.4.0" via npm
      Installing "cordova-plugin-geolocation" at "2.4.0" for android
      Fetching plugin "cordova-plugin-compat" via npm
      Installing "cordova-plugin-compat" at "1.1.0" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-x-toast" via npm
      Installing "cordova-plugin-x-toast" at "2.5.2" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-barcodescanner" via npm
      Installing "cordova-plugin-barcodescanner" at "0.7.0" for android
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      Fetching plugin "cordova-plugin-media@~2.4.0" via npm
      Installing "cordova-plugin-media" at "2.4.0" for android
      Fetching plugin "cordova-plugin-file" via npm
      Installing "cordova-plugin-file" at "4.3.0" for android
      Dependent plugin "cordova-plugin-compat" already installed on android.
       Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.
      
      The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.
      
      If this is a new application no changes are required.
      
      If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
      
        "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
      
      to config.xml in order for the application to find previously stored files.
      
         
      Dependent plugin "cordova-plugin-compat" already installed on android.
      --------------------------------------------------------------------------------
      COMPILE OUTPUT
      --------------------------------------------------------------------------------
      Buildfile: /project/build.xml
      
      -set-mode-check:
      
      -set-debug-files:
      
      -check-env:
       [checkenv] Android SDK Tools Revision 25.2.2
      
      -setup:
        [echo] Project Name: GEPLAN
        [gettype] Project Type: Application
      
      -set-debug-mode:
      
      -debug-obfuscation-check:
      
      -pre-build:
      
      -build-setup:
      [getbuildtools] Using latest Build Tools: 24.0.1
        [echo] Resolving Build Target for GEPLAN...
      [gettarget] Project Target: Android 5.0.1
      [gettarget] API level: 21
        [echo] ----------
        [echo] Creating output directories if needed...
        [mkdir] Created dir: /project/bin
        [mkdir] Created dir: /project/bin/res
        [mkdir] Created dir: /project/bin/rsObj
        [mkdir] Created dir: /project/bin/rsLibs
        [mkdir] Created dir: /project/gen
        [mkdir] Created dir: /project/bin/classes
        [mkdir] Created dir: /project/bin/dexedLibs
        [echo] ----------
        [echo] Resolving Dependencies for GEPLAN...
      [dependency] Library dependencies:
      [dependency] 
      [dependency] ------------------
      [dependency] Ordered libraries:
      [dependency] 
      [dependency] ------------------
        [echo] ----------
        [echo] Building Libraries with 'debug'...
      
      nodeps:
      
      -set-mode-check:
      
      -set-debug-files:
      
      -check-env:
       [checkenv] Android SDK Tools Revision 25.2.2
      
      -setup:
        [echo] Project Name: CordovaLib
        [gettype] Project Type: Android Library
      
      -set-debug-mode:
      
      -debug-obfuscation-check:
      
      -pre-build:
      
      -build-setup:
      [getbuildtools] Using latest Build Tools: 24.0.1
        [echo] Resolving Build Target for CordovaLib...
      [gettarget] Project Target: Android 5.0.1
      [gettarget] API level: 21
        [echo] ----------
        [echo] Creating output directories if needed...
        [mkdir] Created dir: /project/CordovaLib/res
        [mkdir] Created dir: /project/CordovaLib/libs
        [mkdir] Created dir: /project/CordovaLib/bin
        [mkdir] Created dir: /project/CordovaLib/bin/res
        [mkdir] Created dir: /project/CordovaLib/bin/rsObj
        [mkdir] Created dir: /project/CordovaLib/bin/rsLibs
        [mkdir] Created dir: /project/CordovaLib/gen
        [mkdir] Created dir: /project/CordovaLib/bin/classes
        [mkdir] Created dir: /project/CordovaLib/bin/dexedLibs
        [echo] ----------
        [echo] Resolving Dependencies for CordovaLib...
      [dependency] Library dependencies:
      [dependency] No Libraries
      [dependency] 
      [dependency] ------------------
      
      -code-gen:
      [mergemanifest] Merging AndroidManifest files into one.
      [mergemanifest] Manifest merger disabled. Using project manifest only.
        [echo] Handling aidl files...
        [aidl] No AIDL files to compile.
        [echo] ----------
        [echo] Handling RenderScript files...
        [echo] ----------
        [echo] Handling Resources...
        [aapt] Generating resource IDs...
        [echo] ----------
        [echo] Handling BuildConfig class...
      [buildconfig] Generating BuildConfig class.
      
      -pre-compile:
      
      -compile:
        [javac] Compiling 98 source files to /project/CordovaLib/bin/classes
        [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
        [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
        [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
        [javac] Note: Some input files use or override a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.
        [javac] 3 warnings
        [echo] Creating library output jar file...
        [jar] Building jar: /project/CordovaLib/bin/classes.jar
      
      -post-compile:
      
      -obfuscate:
      
      -dex:
        [echo] Library project: do not convert bytecode...
      
      -crunch:
        [crunch] Crunching PNG Files in source dir: /project/CordovaLib/res
        [crunch] To destination dir: /project/CordovaLib/bin/res
        [crunch] Crunched 0 PNG files to update cache
      
      -package-resources:
        [echo] Library project: do not package resources...
      
      -package:
        [echo] Library project: do not package apk...
      
      -post-package:
      
      -do-debug:
        [echo] Library project: do not create apk...
      [propertyfile] Creating new property file: /project/CordovaLib/bin/build.prop
      [propertyfile] Updating property file: /project/CordovaLib/bin/build.prop
      [propertyfile] Updating property file: /project/CordovaLib/bin/build.prop
      [propertyfile] Updating property file: /project/CordovaLib/bin/build.prop
      
      -post-build:
      
      debug:
      
      -code-gen:
      [mergemanifest] Merging AndroidManifest files into one.
      [mergemanifest] Manifest merger disabled. Using project manifest only.
        [echo] Handling aidl files...
        [aidl] No AIDL files to compile.
        [echo] ----------
        [echo] Handling RenderScript files...
        [echo] ----------
        [echo] Handling Resources...
        [aapt] Generating resource IDs...
        [aapt] warning: string 'menu_settings' has no default translation.
        [echo] ----------
        [echo] Handling BuildConfig class...
      [buildconfig] Generating BuildConfig class.
      
      -pre-compile:
      
      -compile:
        [javac] Compiling 37 source files to /project/bin/classes
        [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
        [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
        [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
        [javac] Note: Some input files use or override a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.
        [javac] Note: /project/src/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.
        [javac] Note: Recompile with -Xlint:unchecked for details.
        [javac] 3 warnings
      
      -post-compile:
      
      -obfuscate:
      
      -dex:
        [dex] input: /project/bin/classes
        [dex] input: /project/CordovaLib/bin/classes.jar
        [dex] input: /project/libs/com.google.zxing.client.android.captureactivity.jar
        [dex] input: /project/libs/gcm.jar
        [dex] input: /project/libs/android-support-v13.jar
        [dex] Pre-Dexing /project/CordovaLib/bin/classes.jar -> classes-50c94eb6949a554121683648bde1aeec.jar
        [dex] Pre-Dexing /project/libs/com.google.zxing.client.android.captureactivity.jar -> com.google.zxing.client.android.captureactivity-2a6b08981b6480a61341a68ddf0e6c02.jar
        [dex] Pre-Dexing /project/libs/gcm.jar -> gcm-fe9ac4fa7558dca9ed65bd70253029dd.jar
        [dex] Pre-Dexing /project/libs/android-support-v13.jar -> android-support-v13-c1d2053b6c2c09de22134ebfd5b0f4c5.jar
        [dex] Converting compiled files and external libraries into /project/bin/classes.dex...
        [dx] Merged dex #1 (131 defs/163.5KiB)
        [dx] Merged dex #2 (958 defs/977.4KiB)
        [dx] Merged dex #3 (223 defs/325.8KiB)
        [dx] Merged dex #4 (343 defs/552.5KiB)
        [dx] Merged dex #5 (4 defs/18.7KiB)
        [dx] Result is 1659 defs/2535.7KiB. Took 0.5s
      
      -crunch:
        [crunch] Crunching PNG Files in source dir: /project/res
        [crunch] To destination dir: /project/bin/res
        [crunch] Processing image to cache: /project/res/drawable-hdpi/ic_action_next_item.png => /project/bin/res/drawable-hdpi/ic_action_next_item.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-hdpi/ic_action_next_item.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-hdpi/ic_action_previous_item.png => /project/bin/res/drawable-hdpi/ic_action_previous_item.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-hdpi/ic_action_previous_item.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-hdpi/ic_action_remove.png => /project/bin/res/drawable-hdpi/ic_action_remove.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-hdpi/ic_action_remove.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-hdpi/icon.png => /project/bin/res/drawable-hdpi/icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-hdpi/icon.png: 16% size of source)
        [crunch] Processing image to cache: /project/res/drawable-hdpi/launcher_icon.png => /project/bin/res/drawable-hdpi/launcher_icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-hdpi/launcher_icon.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-hdpi/shopper_icon.png => /project/bin/res/drawable-hdpi/shopper_icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-hdpi/shopper_icon.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-ldpi/icon.png => /project/bin/res/drawable-ldpi/icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-ldpi/icon.png: 10% size of source)
        [crunch] Processing image to cache: /project/res/drawable-mdpi/ic_action_next_item.png => /project/bin/res/drawable-mdpi/ic_action_next_item.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-mdpi/ic_action_next_item.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-mdpi/ic_action_previous_item.png => /project/bin/res/drawable-mdpi/ic_action_previous_item.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-mdpi/ic_action_previous_item.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-mdpi/ic_action_remove.png => /project/bin/res/drawable-mdpi/ic_action_remove.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-mdpi/ic_action_remove.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-mdpi/icon.png => /project/bin/res/drawable-mdpi/icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-mdpi/icon.png: 12% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xhdpi/ic_action_next_item.png => /project/bin/res/drawable-xhdpi/ic_action_next_item.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xhdpi/ic_action_next_item.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xhdpi/ic_action_previous_item.png => /project/bin/res/drawable-xhdpi/ic_action_previous_item.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xhdpi/ic_action_previous_item.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xhdpi/ic_action_remove.png => /project/bin/res/drawable-xhdpi/ic_action_remove.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xhdpi/ic_action_remove.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xhdpi/icon.png => /project/bin/res/drawable-xhdpi/icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xhdpi/icon.png: 22% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xhdpi/launcher_icon.png => /project/bin/res/drawable-xhdpi/launcher_icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xhdpi/launcher_icon.png: 46% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xxhdpi/ic_action_next_item.png => /project/bin/res/drawable-xxhdpi/ic_action_next_item.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xxhdpi/ic_action_next_item.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xxhdpi/ic_action_previous_item.png => /project/bin/res/drawable-xxhdpi/ic_action_previous_item.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xxhdpi/ic_action_previous_item.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xxhdpi/ic_action_remove.png => /project/bin/res/drawable-xxhdpi/ic_action_remove.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xxhdpi/ic_action_remove.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable-xxhdpi/launcher_icon.png => /project/bin/res/drawable-xxhdpi/launcher_icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable-xxhdpi/launcher_icon.png: 63% size of source)
        [crunch] Processing image to cache: /project/res/drawable/icon.png => /project/bin/res/drawable/icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable/icon.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable/launcher_icon.png => /project/bin/res/drawable/launcher_icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable/launcher_icon.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable/share_via_barcode.png => /project/bin/res/drawable/share_via_barcode.png
        [crunch] (processed image to cache entry /project/bin/res/drawable/share_via_barcode.png: 0% size of source)
        [crunch] Processing image to cache: /project/res/drawable/shopper_icon.png => /project/bin/res/drawable/shopper_icon.png
        [crunch] (processed image to cache entry /project/bin/res/drawable/shopper_icon.png: 0% size of source)
        [crunch] Crunched 24 PNG files to update cache
      
      -package-resources:
        [aapt] Creating full resource package...
        [aapt] (skipping dir '_notes' due to ANDROID_AAPT_IGNORE pattern '_*')
        [aapt] warning: string 'menu_settings' has no default translation.
        [aapt] Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.
      
      -package:
      [apkbuilder] Current build type is different than previous build: forced apkbuilder run.
      [apkbuilder] Creating GEPLAN-debug-unaligned.apk and signing it with a debug key...
      
      -post-package:
      
      -do-debug:
       [zipalign] Running zip align on final apk...
        [echo] Debug Package: /project/bin/GEPLAN-debug.apk
      [propertyfile] Creating new property file: /project/bin/build.prop
      [propertyfile] Updating property file: /project/bin/build.prop
      [propertyfile] Updating property file: /project/bin/build.prop
      [propertyfile] Updating property file: /project/bin/build.prop
      
      -post-build:
      
      debug:
      
      BUILD SUCCESSFUL
      Total time: 23 seconds