Home > Net >  ./gradlew build cause ':app:transformClassesWithDexBuilderForDebug
./gradlew build cause ':app:transformClassesWithDexBuilderForDebug

Time:02-10

I've been trying to figure out why my react-native's android version is generating following errors when i run ./gradlew build inside the android folder:

A failure occurred while executing com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform$DexConversionWorkAction
      > Failed to process /Users/xx/React_Native_App/android/app/build/intermediates/javac/debug/classes

I have tried adding multidex = true inside build.gradle & implementation 'com.android.support:multidex:2.0.1' inside app/build.gradle.

I also feel like I've searched the internet thin of answers, upgrading react-native and various libraries.

The error can happen from time to time, and sometimes I manage to compile the app and upload to Google Playstore, but it's starting to bug me a bit now.

Hope someone might sit out there with a possible answer.

Best regards

CodePudding user response:

  •  Tags:  
  • Related