Skip to content

How to build for android with com.android.tools.build:gradle:3.0.1 #7

@angelos3lex

Description

@angelos3lex

Could you please guide me (also update docs) about how we can build react-native-mailcore for android using android tools version com.android.tools.build:gradle:3.0.1?
I followed the instructions using both other options but i face following error:

What went wrong:
Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.
com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/reactlibrary/BuildConfig;

  • react-native version: 0.56.0

PS: Also tried adding multiDexEnabled true to defaultConfig, without any success->same error message occurs(even if i clean and rerun).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions