-
Notifications
You must be signed in to change notification settings - Fork 76
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:transformClassesWithDexForDebug'. #32
Comments
i got the same error |
rn 0.18.0 |
Try running |
i found the way to solve this problem. |
Good! |
Neither solution worked for me. I even removed the folder node_modules and did The full error:
|
@nbastoWM |
android/build.gradle
android/app/build.gradle
|
I got it running by changing to:
and
|
Good! This solution will help many people that encounter this issue. |
Yup ! I had faced the same issue, @nbastoWM solution worked pretty well. Can I update the Readme, if there is no compatible problem with play-services-gcm:8.3.0 and google-services:1.5.0-beta3 ? |
@vikassy Please do it, thanks. |
@nbastoWM - I made those changes, but I'm still only able to build the app with |
@lynndylanhurley I'm not sure but you may try to delete |
I'm having the same issue. @lynndylanhurley Did you find any solutions? |
I just had to set |
@notlose thanks you! I struggled with this issue for two hours! This fixed it! |
@notlose Solution work for me! ( I am using React Native 0.51 )
Success! |
Had the same issue and the solution that worked for me was to add this to my
I also added |
Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
|
Try adding this in your
|
In my case gradle was not in the environment variables. Check in terminal for the command gradle. If not recognized first you have to find the folder of gradle in configuration> settings> build of the android studio. The bin is added to the environment variables. Check again the gradle word in terminal later it runs ./gradlew in unix like systems from the terminal or .\ gradlew in the powershell of windows |
If java 8 or above is used then the problem is the libraries we use are incompatible with java 8. So to solve this add these two lines to build.gradle of your app and all sub modules if any. (Android studio clearly show how to do this in error message) targetCompatibility = '1.7' |
Below lines works for me, compileOptions { |
there's no need to remove "build" folders manually, just run "gradlew clean" command in android folder. |
@MaheshNandam In what file did you add those lines? |
@sturmenta , it's in android/app/build.gradle |
Work to me and in android/app/build.gradle add inside android section: compileOptions { |
remove android folder run
|
This worked for me after 4 hours of trying, by adding this to the module dependencies :
I hope this helps 👍 |
If you are running on Terminal, check if the java version you are using is 1.8. |
Please tell me where I need to enter the command 'react-native run-android' ? |
Very good! |
If your minSdkVersion is lower then 21 you need to add reference: https://developer.android.com/studio/build/multidex |
help full for me |
Deleting build folders didnot solve my issue I need to delete some hidden folders too. Change settings to view hidden folders ( cmd +shift + . in mac) Delete build, .gradlew, .idea, files with .iml in android folder Now go back and run react-native run-android Good luck :) |
In app/build.gradle
|
Refer this android { |
Hey everyone! I am getting this error when generating release apk, in debug works fine
|
I'm using react-native-maps and my issue was
|
Thanks @Darkensses this worked. I wonder why the tooling does not enable this by default. But I guess it would prevent the app from running on very old Android devices? |
I got the same error after using |
Just delete Reasons for the issue.
|
Thanks alot this worked! <3 |
I tried to run the example and everything went OK.
When I tried to install this module onto my App, that error appears.
I don't have multiDexEnabled and I'm running on an Android device with RN 0.17.
The text was updated successfully, but these errors were encountered: