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

Not able make release build apk #948

Open
vjha125 opened this issue Nov 17, 2022 · 12 comments
Open

Not able make release build apk #948

vjha125 opened this issue Nov 17, 2022 · 12 comments
Labels

Comments

@vjha125
Copy link

vjha125 commented Nov 17, 2022

  • What went wrong:
    Execution failed for task ':app:mergeDexRelease'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Type com.bumptech.glide.GeneratedRequestManagerFactory is defined multiple times: /Users/vikashjha/Desktop/Connect360/node_modules/**react-native-fast-image/**android/build/.transforms/ca14113de0931f6372af09aa42147bae/classes/classes.dex,

@vjha125 vjha125 added the bug label Nov 17, 2022
@mr-vikash-jha
Copy link

please help. i'm facing this issue from this library

@ranshine
Copy link

I am facing same issue, have you got any solution ?

@mr-vikash-jha
Copy link

yes. i got it solution.

@ranshine
Copy link

I am able to run RN app in debug, but in release i am getting this issue. Can you please provide the solution

@mr-vikash-jha
Copy link

sure.

@ranshine
Copy link

@mr-vikash-jha I am waiting for your solution, please provide.

@mr-vikash-jha
Copy link

in android build.gradle add this:- excludeAppGlideModule = true
after that install this version of the fast image:-
"react-native-fast-image": "^8.5.11"

just let me know if it works or not.

@ranshine
Copy link

Thanks @mr-vikash-jha , but still i am getting same dex error

@mr-vikash-jha
Copy link

in android build.gradle add this:- excludeAppGlideModule = true after that install this version of the fast image:- "react-native-fast-image": "^8.5.11"

just let me know if it works or not.

this one works for me

@Dev-Ahmed-Adnan
Copy link

Dev-Ahmed-Adnan commented Mar 1, 2023

in android build.gradle add this:- excludeAppGlideModule = true after that install this version of the fast image:- "react-native-fast-image": "^8.5.11"
just let me know if it works or not.

this one works for me

This worked for me too, I've added this in android/build.gradle:
project.ext {
excludeAppGlideModule = true
}

@mr-vikash-jha
Copy link

Thanks

@diegosoriarios
Copy link

diegosoriarios commented May 17, 2024

For me what help was to add this on my project.ext on android/build.gradle

project.ext {
    excludeAppGlideModule = true
    glideVersion = "4.9.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 participants