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

Android Build fails after plugin browsertab with Execution failed for task ':transformClassesWithDexForDebug'.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Not A Problem
    • 6.3.0, 6.2.2
    • 6.3.0, 6.2.2
    • cordova-android
    • Windows, Ionic 2,

    • Important

    Description

      Hi,

      I have installed a plugin called "cordova-plugin-browsertab": "^0.2.0" to a fresh ionic project and added the android platform and the build returns with an error of

      • 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 Lorg/apache/cordova/PermissionHelper;

      If I remove the plugin it works fine, but the plugin works in the browser when serving the page. The only issue I have is when trying to build for android.

      cli packages: (C:\Users\Lordsteggu\AppData\Roaming\npm\node_modules)

      @ionic/cli-utils : 1.19.0
      ionic (Ionic CLI) : 3.19.0

      global packages:

      cordova (Cordova CLI) : 7.0.1

      local packages:

      @ionic/app-scripts : 3.1.5
      Cordova Platforms : android 6.3.0
      Ionic Framework : ionic-angular 3.9.2

      System:

      Node : v8.4.0
      npm : 5.3.0
      OS : Windows 10

      Environment Variables:

      ANDROID_HOME : not set

      Misc:

      backend : pro

      A list of the plugins installed

      cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
      cordova-plugin-compat 1.0.0 "Compat"
      cordova-plugin-device 1.1.4 "Device"
      cordova-plugin-ionic-webview 1.1.11 "Ionic's WKWebView Engine"
      cordova-plugin-splashscreen 4.0.3 "Splashscreen"
      cordova-plugin-whitelist 1.3.1 "Whitelist"
      ionic-plugin-keyboard 2.2.1 "Keyboard"

      Also, the android deployment works fine if I remove the browser tab, and the application also built fine from a fresh ionic project.

      I am using the browsertab to setup firebase in my app, it is used by firebase to display the redirect authorisation login, which is used to setup login with Google facebook etc...

      So I am unable to login through any social media.

      Cheers,

      Dan

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            Lordsteggu Daniel Allison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: