question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error building after admob-plus installation

See original GitHub issue

Is this a bug report?

Yes

Environment

AdMob Plus Environment Info: System: OS: Windows 10 CPU: (4) x64 Intel® Core™ i5-4200M CPU @ 2.50GHz Memory: 2.01 GB / 7.93 GB Binaries: npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338

cordova: 8.1.2 (cordova-lib@8.1.1) ionic: 4.3.1 cordova plugins: { “cordova-plugin-whitelist”: “1.3.3”, “cordova-plugin-statusbar”: “2.4.2”, “cordova-plugin-device”: “2.0.2”, “cordova-plugin-splashscreen”: “5.0.2”, “cordova-plugin-ionic-webview”: “^2.0.0”, “cordova-plugin-ionic-keyboard”: “^2.0.5”, “cordova-plugin-advanced-http”: “^2.0.1”, “cordova-plugin-camera”: “^4.0.3”, “cordova-plugin-file”: “^6.0.1”, “cordova-plugin-file-transfer”: “^1.7.1”, “cordova-plugin-filepath”: “^1.4.2”, “com-badrit-base64”: “0.2.0”, “cordova-plugin-firebase”: “2.0.5”, “cordova-android-support-gradle-release”: “^1.4.5”, “cordova-plugin-inappbrowser”: “3.0.0”, “cordova-sqlite-storage”: “2.5.0”, “cordova-plugin-network-information”: “2.0.1”, “mx.ferreyra.callnumber”: “0.0.2”, “call-number”: “1.0.1”, “cordova-admob-plus”: “0.8.0” }

Steps to Reproduce

(Write your steps here:)

  1. everything works fine
  2. installed plugin
  3. ionic cordova build android

Expected Behavior

build successful…

Actual Behavior

:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.

java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

39 actionable tasks: 5 executed, 34 up-to-date

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

  • Get more help at https://help.gradle.org

BUILD FAILED in 10s cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.

java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
n-clarkcommented, Nov 13, 2018

Try using cordova-plugin-enable-multidex

0reactions
ratsoncommented, Nov 27, 2018

@chromotoxin Good to hear that 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cordova plugin add admob-plus-cordova failed - Command ...
Bug Description I try to build a new version of my game, ... Failed to install 'admob-plus-cordova': Error: pod: Command failed with exit ......
Read more >
Frequently Asked Questions - AdMob Plus
How do I fix "error: local variable callbackContext is accessed from within inner class; needs to be declared final" error when building for...
Read more >
Error when building locally in Cordova after adding cordova ...
This is a mirror from cordova-admob but just changing the dependency method (this uses ant which makes it compatible with Phonegap Build).
Read more >
2 Errors when building, just after installing newest GoogleAds ...
I would suggest you to create a new project and make sure that you are using the latest Mobile Ads plugin. Import the...
Read more >
Get Started | Android - Google Developers
This step creates an AdMob app with a unique AdMob App ID that is needed later in this guide. Configure your app. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found