-
Notifications
You must be signed in to change notification settings - Fork 563
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
Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug', build failed #373
Comments
Found any solution? |
In my case, android/app/build.gradle
multiDexEnabled solved by adding true |
I have tried multiDexEnable but no success Getting the following error:
|
I managed to fix the problem above using the pull request below using patch-package mauron85/background-geolocation-android#31 Seems to be a dependency conflict with expo's unimodules from what I understand |
It work ! thanks !
|
this worked for me, thanks |
In my case, android/app/build.gradle android { this worked for me too, thanx |
These didn't help me. Any other options? My issue is specifically with com.iodine.start.ArrayUtil, not the org.apache.commons.io . I already have multiDex enabled. |
OK mine failed because I had this listed in app/build.gradle's dependencies: implementation project(':@mauron85_react-native-background-geolocation') Turns out it was already being imported implicitly through the newer RN autolinking: apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) I just commented "implementation" out and it compiles now. |
Thanks. This worked for me. |
Hello friends, Did anybody find solution for this issue ? When i generate signing apk ,i got "Program type already present: org.apache.commons.io.Charsets" error. i tried multidexEnable true but not work. defaultConfig { |
@mehmetsalihakcan did you find solution? |
Thanks for this patch, helped me a lot ! |
Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug', build failed
Your Environment
Context
Should build when linking manually...
Expected Behavior
Application should build
Actual Behavior
Build fails with the error joined in debug logs.
Possible Fix
No idea... but i specified the following in build.gradle :
ext { googlePlayServicesLocationVersion = "16.0.0" buildToolsVersion = "28.0.3" minSdkVersion = 16 compileSdkVersion = 28 targetSdkVersion = 28 supportLibVersion = "28.0.0" }
and it still doesn't work.
Steps to Reproduce
1.
npm install react-native @mauron85/react-native-background-geolocation
2. link manually (auto fails as described in this issue #364)
3.
react-native run-android
Context
Can't build...
Debug logs
The text was updated successfully, but these errors were encountered: