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.

BUILD FAILED on a new installation

See original GitHub issue
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: android.support.v4.app.FrameMetricsAggregator$FrameMetricsApi24Impl$1

I tried cordova clean and the solution in #70 with no luck.

project.properties

# Project target.
target=android-28
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-support-google-services/igbau-build.gradle
cordova.system.library.2=com.google.firebase:firebase-core:16.0.+
cordova.system.library.3=com.google.firebase:firebase-messaging:18.0.+
cordova.system.library.4=com.android.support:support-compat:28.+
cordova.system.library.5=me.leolin:ShortcutBadger:1.1.22@aar

package.json

"dependencies": {
        "cordova-android": "^8.0.0",
        "cordova-plugin-calendar": "^5.1.4",
        "cordova-plugin-firebase-messaging": "^2.1.6",
        "cordova-plugin-splashscreen": "^5.0.2",
        "cordova-plugin-whitelist": "^1.3.3"
    },
    "cordova": {
        "plugins": {
            "cordova-plugin-whitelist": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-calendar": {},
            "cordova-plugin-firebase-messaging": {
                "FIREBASE_CORE_VERSION": "16.0.+",
                "FIREBASE_MESSAGING_VERSION": "18.0.+",
                "ANDROID_SUPPORT_VERSION": "28.+"
            }
        },
        "platforms": [
            "android"
        ]
    }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

18reactions
yoldarcommented, Jul 5, 2019

@sean-hill try this:

cordova plugin rm cordova-plugin-firebase-messaging

cordova plugin add cordova-plugin-firebase-messaging
cordova plugin add cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter
1reaction
sean-hillcommented, Jul 1, 2019

@chemerisuk anything we can do to further debug this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build error after package installation failed #23437 - GitHub
When package installation failed, strange error sometimes appears in console. I can fix it manually, but it is some type of bug in...
Read more >
last Dev. Channel build failed to install - Microsoft Community
hi,. I tried twice but the latest build in the Dev. Channel failed to install. When restarting, it was working on update but...
Read more >
TestFlight build fails to install | Apple Developer Forums
I've uploaded an initial build of my app for TestFlight and enabled it for internal and ... The install fails right before the...
Read more >
pyenv install: 3.x BUILD FAILED (Ubuntu 20.04 using python ...
I have all the dependencies installed but 3.7.3 still fails for me. With two warnings "WARNING: The Python ctypes extension was not compiled....
Read more >
TeamCity On-Premises - Build Failure Conditions - JetBrains
In the Common Failure Conditions block, you can specify how exactly TeamCity will fail builds. Set Custom Build Execution Timeout. The if it...
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