2 Replies Latest reply on Oct 11, 2016 1:39 PM by sanjeevs89568367

    failing in android <plugin name="phonegap-plugin-barcodescanner" spec="6.0.2" source="npm" />

    sanjeevs89568367 Level 1

      Hi,

       

      I have updated my cordova barcodescanner plugin to the latest one  (<plugin name="phonegap-plugin-barcodescanner" spec="6.0.2" source="npm" />) where the orientation problem was fixed. With the update of this plugin, there is problem in android build. It works fine in iOS. Is there any way that we can fix this?

       

       

      FYI: log message

       

       

      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: 18.424 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: Some input files use 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)