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.

Android build fail

See original GitHub issue

I’ve been trying to wrap my head around this issue for two days now but can’t seem to figure out how to resolve it. I’ve been trying to find any reference related to this error but can’t seem to find any. The following are my configurations:

RN 0.54.4
tipsi stripe 5.2.4

android/app/build.gradle

android {
  compileSdkVersion 27
  buildToolsVersion '27.0.3'

  defaultConfig {
    ...
    targetSdkVersion 27
    ...
  }
  ...
  dependencies {
    implementation project(':tipsi-stripe')
    implementation "com.android.support:support-v13:27.1.1"
    implementation "com.android.support:design:27.1.1"
    implementation "com.android.support:appcompat-v7:27.1.1"
  }

When I try to run react-native run-android the following error occurs:

> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
D8: Program type already present: com.google.android.gms.internal.zzdlx

How do you resolve this error? Any help is much appreciated.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jvtalan1commented, Sep 1, 2018

Hi @isnifer , sorry for the very much delayed response because I had to divert much of my time to other needed feature stories on my app. Fortunately, I fixed the issue by setting up the project-wide properties on top-level build.gradle, just like in the example (which I’ve missed):

ext {
    buildToolsVersion = "26.0.2"
    firebaseVersion = "11.8.0"
    googlePlayServicesVersion = "11.8.0"
}
0reactions
isnifercommented, Sep 1, 2018

Nice!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to build project with Android studio - gradle
File->Other Settings->Default Project Structure · Under Project Settings: Project, set Project SDK as Android SDK. · Click Edit button · For Android SDK,...
Read more >
Why does a build fail in Android Studio even if I don't have ...
There are several causes for gradle build fail in Android studio. Few reasons might be: * Dependencies added * Importing the project from...
Read more >
[FIXED] Android build failures `No matching variant of com. ...
Description. Hey all, I'd like to share an update on a series of build failures React Native & Expo users have been experiencing...
Read more >
Fix Gradle Build Error in Android Studio | Compilation failed
Tutorial to fix errors encountered while running the android application. This video includes some ways in which you can fix Gradle build ......
Read more >
Bug - Android build. Gradle build failed.
Hi, I am using LTS 2021.3.8f1 + I have both the Android and Windows modules installed. Every time I try to build a...
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