2 Replies Latest reply on Oct 24, 2016 7:26 PM by ryanskihead

    app building issues

    pgbtestemp

      I am trying to build APK but getting following error:

       

      Oh geez. Your build failed. Click the "Log" button above to view the compile log. If you need help diagnosing the issue, you can post to the support forum with your App ID (please do a search first).

       

      Log of the app:

       

      Build Date: 2016-10-24 06:30:19 +0000

      --------------------------------------------------------------------------------

      PLUGIN OUTPUT

      --------------------------------------------------------------------------------

      Fetching plugin "cordova-plugin-device" via npm

      Installing "cordova-plugin-device" at "1.1.3" for android

      Fetching plugin "cordova-plugin-camera" via npm

      Installing "cordova-plugin-camera" at "2.3.0" for android

      Fetching plugin "cordova-plugin-compat" via npm

      Installing "cordova-plugin-compat" at "1.0.0" for android

      Fetching plugin "cordova-plugin-geolocation" via npm

      Installing "cordova-plugin-geolocation" at "2.4.0" for android

      Dependent plugin "cordova-plugin-compat" already installed on android.

      Fetching plugin "cordova-plugin-inappbrowser" via npm

      Installing "cordova-plugin-inappbrowser" at "1.5.0" for android

      Fetching plugin "cordova-plugin-globalization" via npm

      Installing "cordova-plugin-globalization" at "1.0.4" for android

      Fetching plugin "cordova-plugin-network-information" via npm

      Installing "cordova-plugin-network-information" at "1.3.0" for android

      Fetching plugin "cordova-plugin-splashscreen" via npm

      Installing "cordova-plugin-splashscreen" at "4.0.0" for android

      Fetching plugin "cordova-plugin-media" 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.

       

      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.

      Fetching plugin "cordova-plugin-dialogs" via npm

      Installing "cordova-plugin-dialogs" at "1.3.0" for android

      Fetching plugin "phonegap-plugin-push-deprecated" via npm

      Installing "phonegap-plugin-push-deprecated" at "2.5.0-pgb-1" for android

      Fetching plugin "cordova-plugin-screen-orientation" via npm

      Installing "cordova-plugin-screen-orientation" at "1.4.2" for android

      Fetching plugin "phonegap-plugin-barcodescanner" via npm

      Installing "phonegap-plugin-barcodescanner" at "6.0.3" for android

      Dependent plugin "cordova-plugin-compat" already installed on android.

      Fetching plugin "cordova-sqlite-evcore-extbuild-free" via npm

      Installing "cordova-sqlite-evcore-extbuild-free" at "0.8.2" for android

      Fetching plugin "de.appplant.cordova.plugin.local-notification" via npm

      Installing "de.appplant.cordova.plugin.local-notification" at "0.8.4" for android

      Dependent plugin "cordova-plugin-device" already installed on android.

      Fetching plugin "cordova-plugin-app-event" via npm

      Installing "cordova-plugin-app-event" at "1.2.0" for android

       

        Your support is needed. If you use the local-notification plugin please support us in order to ensure further development.

        https://github.com/katzer/cordova-plugin-local-notifications#supporting

       

        Thank you!

      Fetching plugin "cordova-plugin-whitelist" via npm

      Installing "cordova-plugin-whitelist" at "1.3.0" for android

       

        This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

      --------------------------------------------------------------------------------

      COMPILE OUTPUT

      --------------------------------------------------------------------------------

      Configuration on demand is an incubating feature.

      Incremental java compilation is an incubating feature.

      :preBuild UP-TO-DATE

      :preDebugBuild UP-TO-DATE

      :checkDebugManifest

      :preReleaseBuild UP-TO-DATE

      :CordovaLib:preBuild UP-TO-DATE

      :CordovaLib:preDebugBuild UP-TO-DATE

      :CordovaLib:compileDebugNdk UP-TO-DATE

      :CordovaLib:compileLint

      :CordovaLib:copyDebugLint UP-TO-DATE

      :CordovaLib:mergeDebugProguardFiles

      :CordovaLib:packageDebugRenderscript UP-TO-DATE

      :CordovaLib:checkDebugManifest

      :CordovaLib:prepareDebugDependencies

      :CordovaLib:compileDebugRenderscript

      :CordovaLib:generateDebugResValues

      :CordovaLib:generateDebugResources

      :CordovaLib:packageDebugResources

      :CordovaLib:compileDebugAidl

      :CordovaLib:generateDebugBuildConfig

      :CordovaLib:mergeDebugShaders

      :CordovaLib:compileDebugShaders

      :CordovaLib:generateDebugAssets

      :CordovaLib:mergeDebugAssets

      :CordovaLib:processDebugManifest

      :CordovaLib:processDebugResources

      :CordovaLib:generateDebugSources

      :CordovaLib:incrementalDebugJavaCompilationSafeguard

      :CordovaLib:compileDebugJavaWithJavac

      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processDebugJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForDebug

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

      :CordovaLib:mergeDebugJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForDebug

      :CordovaLib:transformNative_libsWithSyncJniLibsForDebug

      :CordovaLib:bundleDebug

      :CordovaLib:preReleaseBuild UP-TO-DATE

      :CordovaLib:compileReleaseNdk UP-TO-DATE

      :CordovaLib:copyReleaseLint UP-TO-DATE

      :CordovaLib:mergeReleaseProguardFiles

      :CordovaLib:packageReleaseRenderscript UP-TO-DATE

      :CordovaLib:checkReleaseManifest

      :CordovaLib:prepareReleaseDependencies

      :CordovaLib:compileReleaseRenderscript

      :CordovaLib:generateReleaseResValues

      :CordovaLib:generateReleaseResources

      :CordovaLib:packageReleaseResources

      :CordovaLib:compileReleaseAidl

      :CordovaLib:generateReleaseBuildConfig

      :CordovaLib:mergeReleaseShaders

      :CordovaLib:compileReleaseShaders

      :CordovaLib:generateReleaseAssets

      :CordovaLib:mergeReleaseAssets

      :CordovaLib:processReleaseManifest

      :CordovaLib:processReleaseResources

      :CordovaLib:generateReleaseSources

      :CordovaLib:incrementalReleaseJavaCompilationSafeguard

      :CordovaLib:compileReleaseJavaWithJavac

      :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processReleaseJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForRelease

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease

      :CordovaLib:mergeReleaseJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForRelease

      :CordovaLib:transformNative_libsWithSyncJniLibsForRelease

      :CordovaLib:bundleRelease

      :prepareBarcodescannerLibrary

      :prepareComAndroidSupportSupportV42411Library

      :prepareProjectCordovaLibUnspecifiedDebugLibrary

      :prepareDebugDependencies

      :compileDebugAidl

      :compileDebugRenderscript

      :generateDebugBuildConfig

      :mergeDebugShaders

      :compileDebugShaders

      :generateDebugAssets

      :mergeDebugAssets

      :generateDebugResValues

      :generateDebugResources

      :mergeDebugResources

      :processDebugManifest

      :processDebugResources

      :generateDebugSources

      :incrementalDebugJavaCompilationSafeguard

      :compileDebugJavaWithJavac

      :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: /project/src/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.

      Note: Recompile with -Xlint:unchecked for details.

      :compileDebugNdk UP-TO-DATE

      :compileDebugSources

      :prePackageMarkerForDebug

      :transformClassesWithDexForDebug FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':transformClassesWithDexForDebug'.

      > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServ iceInfoVersionImpl;

       

      * Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

       

      BUILD FAILED

       

      Total time: 12.421 secs

      Error: /project/gradlew: Command failed with exit code 1 Error output:

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: /project/src/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.

      Note: Recompile with -Xlint:unchecked for details.

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':transformClassesWithDexForDebug'.

      > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServ iceInfoVersionImpl;

       

      * Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

        at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

        at emitTwo (events.js:106:13)

        at ChildProcess.emit (events.js:191:7)

        at maybeClose (internal/child_process.js:877:16)

        at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

       

      app url:

      https://build.phonegap.com/apps/2320505/builds

       

      app config file:

       

      <?xml version="1.0" encoding="UTF-8" ?>

      <widget xmlns   = "http://www.w3.org/ns/widgets" !

          xmlns:gap   = "http://phonegap.com/ns/1.0"

          id          = "com.companyname.story565test"

          versionCode = "28"

          version     = "1.0.28" >

          <name>565Test</name>

          <description>565 Test</description>

          <preference name="orientation" value="portrait" />

          <preference name="fullscreen" value="true" />

          <preference name="AndroidPersistentFileLocation" value="Compatibility" />

          <preference name="android-build-tool" value="gradle" />

       

       

          <feature name="http://api.phonegap.com/1.0/camera" />

          <feature name="http://api.phonegap.com/1.0/file" />

          <feature name="NetworkStatus">

              <param name="android-package" value="org.apache.cordova.networkinformation.NetworkManager" />

          </feature>

          <feature name="Notification">

              <param name="android-package" value="org.apache.cordova.dialogs.Notification" />

          </feature>

          <feature name="PushPlugin">

            <param name="android-package" value="com.plugin.gcm.PushPlugin" />

          </feature>         

          <plugin name="cordova-plugin-device" source="npm" />

          <plugin name="cordova-plugin-camera" source="npm" />

          <plugin name="cordova-plugin-geolocation" source="npm" />

          <plugin name="cordova-plugin-inappbrowser" source="npm" />

          <plugin name="cordova-plugin-globalization" source="npm" />

          <plugin name="cordova-plugin-network-information" source="npm" />

          <plugin name="cordova-plugin-splashscreen" source="npm" />

          <plugin name="cordova-plugin-media" source="npm" />

          <plugin name="cordova-plugin-dialogs" source="npm" />

          <plugin name="phonegap-plugin-push-deprecated"  source="npm"/>

          <plugin name="cordova-plugin-screen-orientation" source="npm" />

          <plugin name="phonegap-plugin-barcodescanner"  source="npm" />

          <plugin name="cordova-sqlite-evcore-extbuild-free"  source="npm" />

          <plugin name="de.appplant.cordova.plugin.local-notification"  source="npm" />

          <plugin name="cordova-plugin-whitelist" />

          <!--icon settings-->

          <!-- App Main Icon -->

          <icon src="icons/icon.png" />

          <!-- Android Icons -->

          <icon src="icons/android-ldpi.png" gap:platform="android" gap:qualifier="ldpi" />

          <icon src="icons/android-mdpi.png" gap:platform="android" gap:qualifier="mdpi" />

          <icon src="icons/android-hdpi.png" gap:platform="android" gap:qualifier="hdpi" />

          <icon src="icons/android-xhdpi.png" gap:platform="android" gap:qualifier="xhdpi" />

          <icon src="icons/android-xxhdpi.png" gap:platform="android" gap:qualifier="xxhdpi" />

          <icon src="icons/android-fr-xxhdpi.png" gap:platform="android" gap:qualifier="fr-xxhdpi" />

          <!--icon settings-->

          <!--splashscreen settings-->

          <!-- App Main Splashscreen -->

          <gap:splash src="splashscreen/splash.png" />

          <!-- Android -->

          <gap:splash src="splashscreen/android-ldpi.png" gap:platform="android" gap:qualifier="ldpi" />

          <gap:splash src="splashscreen/android-mdpi.png" gap:platform="android" gap:qualifier="mdpi" />

          <gap:splash src="splashscreen/android-hdpi.png" gap:platform="android" gap:qualifier="hdpi" />

          <gap:splash src="splashscreen/android-xhdpi.png" gap:platform="android" gap:qualifier="xhdpi" />

          <gap:splash src="splashscreen/android-fr-xhdpi.png" gap:platform="android" gap:qualifier="fr-xhdpi" />

          <gap:splash src="splashscreen/android-portrait-xxhdpi.png" gap:platform="android" gap:qualifier="port-xxhdpi" />

          <!--splashscreen settings-->

          <platform name="android" />

          <access origin="*" subdomains="true" />

      </widget>