Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after adding this library i am getting error while building the app #25

Open
ashishdevadiga opened this issue Feb 26, 2020 · 2 comments

Comments

@ashishdevadiga
Copy link

Error:

Execution failed for task ':app:multiDexListDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > 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: com.reactlibrary.BuildConfig
@angelos3lex
Copy link
Owner

angelos3lex commented Feb 26, 2020

@ashishdevadiga Could you add here some more info? RN version, your build.gradle files informations etc. did you try adding multidex true while addding Multidex as dependency? for example like what this answer proposes here

@ashishdevadiga
Copy link
Author

System:
OS: Windows 10 10.0.17134
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 2.85 GB / 7.92 GB
Binaries:
Node: 10.10.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.16.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6200805
npmPackages:
react: ^16.12.0 => 16.12.0
react-native: ^0.61.5 => 0.61.5

Project level build gradle:

buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.1.1"
    }
dependencies {
        classpath('com.android.tools.build:gradle:3.5.1')
        classpath ('com.google.gms:google-services:4.2.0')  
        classpath 'io.fabric.tools:gradle:1.28.1'
        classpath 'com.google.gms:google-services:4.3.3'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

App level build gradle:

defaultConfig {
        multiDexEnabled true
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants