You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2017/12/14 15:30:00 UTC

[jira] [Closed] (CB-13653) Android Build fails after plugin browsertab with Execution failed for task ':transformClassesWithDexForDebug'.

     [ https://issues.apache.org/jira/browse/CB-13653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile closed CB-13653.
-----------------------------
    Resolution: Not A Problem

That's not a Cordova problem, it's the plugin itself, it should be updated to use the permissions classes in cordova-android and remove the cordova-plugin-compat dependency. 
White it uses that dependency it will have duplicate classes.
Another workaround is to downgrade your cordova-android version to one that doesn't have the permission classes included, but that will make other updated plugins not to work

> 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
>              Labels: build
>             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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org