Daniel Allison created CB-13653:
-----------------------------------

             Summary: Android Build fails after plugin browsertab with 
Execution failed for task ':transformClassesWithDexForDebug'.
                 Key: CB-13653
                 URL: https://issues.apache.org/jira/browse/CB-13653
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-android
    Affects Versions: 6.3.0, 6.2.2
         Environment: Windows, Ionic 2, 
            Reporter: Daniel Allison
            Assignee: Joe Bowser
            Priority: Blocker
             Fix For: 6.3.0, 6.2.2


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




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to