I'm on React Native and I have added react-native-camera
package
After, I got :
Execution failed for task ':app:transformClassesWithDexBuilderForDebug'. com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-xxx-12.0.1.aar\xxx\jars\classes.jar
NB: i use also react-native-maps
What I have and have do :
- React Native 0.59
- react-native-camera: 2.11.1```` (to avoid androidx dependancy)
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:multidex:1.0.3'
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
multiDexEnabled true
andmissingDimensionStrategy 'react-native-camera', 'general'
- repositories
google()
,classpath 'com.android.tools.build:gradle:3.3.1'
,classpath 'com.google.gms:google-services:4.2.0'
,maven { url "https://www.jitpack.io" }
gradlew clean
buildToolsVersion = "28.0.3" minSdkVersion = 19 compileSdkVersion = 28 targetSdkVersion = 28 supportLibVersion = "28.0.0" googlePlayServicesVersion = "15.0.1" androidMapsUtilsVersion = "0.5+" }```
I have already check these Q/A :
- java.lang.NoClassDefFoundError: Failed resolution Failed resolution of: Lcom/google/android/gms/common/internal/zzab;
- java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq; when adding Google Maps to Android app
- Java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/FirebaseApp
- Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/util/Function;
- java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbp;
- java.lang.NoClassDefFoundError: com.google.android.gms.internal.zzmp
- Fatal Exception: java.lang.NoClassDefFoundError com.google.android.gms.internal.firebase-perf.zzw
- The import com.google.android.gms cannot be resolved
- DexArchiveBuilderException: Failed to process /xxx/.gradle/caches/transforms-1/files-1.1/play-services-location-11.2.2.aar
- Execution failed for task app:transformClassesWithDesugarForDebug error on Android Studio 3.0 Beta 2
- Android, flutter errror : Execution failed for task ':app:mergeDebugResources'
- android apache poi-ooxml causes build error 'app:transformClassesWithDesugarForDebug'
- Error:java.lang.ClassNotFoundException: Class org.openjdk.jdi.ReferenceType not found
- Android compilation error after upgrading to 'com.google.android.gms:play-services-ads:18.1.0'
- Android gradle error version (3.3.1) problem
- com.android.builder.dexing.DexArchiveBuilderException: Error while dexing
And more, but no luck
Others details come with :
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gass-12.0.1.aar\xxx\jars\classes.jar: D8: Type
com.google.android.gms.internal.zzflk
was not found, it is required for default or static interface methods desugaring ofint com.google.android.gms.internal.zzba.zzq()
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gcm-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.internal.zzbq
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.gcm.Task$Builder.checkConditions()
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gcm-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.util.zzz
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.gcm.GcmTaskService$zza.handleMessage(android.os.Message)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gass-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzfls
was not found, it is required for default or static interface methods desugaring ofcom.google.android.gms.internal.zzba com.google.android.gms.internal.zzcdf.zzawd()
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gass-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgo
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.internal.zzcdf.writeToParcel(android.os.Parcel, int)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gcm-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.util.zzs
was not found, it is required for default or static interface methods desugaring ofboolean com.google.android.gms.gcm.zza.zzt(android.os.Bundle)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gcm-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.util.zzs
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.gcm.GcmReceiver.onReceive(android.content.Context, android.content.Intent)
D8: Type com.google.android.gms.common.internal.zzf is referenced as an interface fromcom.google.android.gms.internal.zzcdb
. C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgm
was not found, it is required for default or static interface methods desugaring ofjava.lang.Object com.google.android.gms.wallet.zzae.createFromParcel(android.os.Parcel)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgo
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.wallet.Cart.writeToParcel(android.os.Parcel, int)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.internal.zzbq
was not found, it is required for default or static interface methods desugaring ofcom.google.android.gms.wallet.PaymentDataRequest$Builder com.google.android.gms.wallet.PaymentDataRequest$Builder.addAllowedPaymentMethods(java.util.Collection)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.internal.zzbg
was not found, it is required for default or static interface methods desugaring ofboolean com.google.android.gms.wallet.Wallet$WalletOptions.equals(java.lang.Object)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgq
was not found, it is required for default or static interface methods desugaring ofcom.google.android.gms.wallet.PaymentData com.google.android.gms.wallet.PaymentData.getFromIntent(android.content.Intent)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.internal.zzbq
was not found, it is required for default or static interface methods desugaring ofcom.google.android.gms.wallet.PaymentMethodTokenizationParameters$Builder com.google.android.gms.wallet.PaymentMethodTokenizationParameters$Builder.addParameter(java.lang.String, java.lang.String)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.dynamic.zzn
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.wallet.fragment.SupportWalletFragment$zzb.onInflate(android.app.Activity, android.os.Bundle, android.os.Bundle)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.dynamic.zzj
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.wallet.fragment.WalletFragment.<init>()
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgo
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.internal.zzdmb.writeToParcel(android.os.Parcel, int)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgm
was not found, it is required for default or static interface methods desugaring ofjava.lang.Object com.google.android.gms.wallet.fragment.zzd.createFromParcel(android.os.Parcel)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.api.internal.zzdf
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.internal.zzdmy.zza(int, boolean, android.os.Bundle)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.dynamic.zzn
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.wallet.fragment.WalletFragment$zzb.onInflate(android.app.Activity, android.os.Bundle, android.os.Bundle)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzex
was not found, it is required for default or static interface methods desugaring ofboolean com.google.android.gms.internal.zzdmn.onTransact(int, android.os.Parcel, android.os.Parcel, int)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.dynamic.IObjectWrapper$zza
was not found, it is required for default or static interface methods desugaring ofcom.google.android.gms.dynamic.IObjectWrapper com.google.android.gms.internal.zzdmf.onCreateView(com.google.android.gms.dynamic.IObjectWrapper, com.google.android.gms.dynamic.IObjectWrapper, android.os.Bundle)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.dynamic.zzr
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.wallet.fragment.SupportWalletFragment.<init>()
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgm
was not found, it is required for default or static interface methods desugaring ofjava.lang.Object com.google.android.gms.identity.intents.model.zza.createFromParcel(android.os.Parcel)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.internal.zzbq
was not found, it is required for default or static interface methods desugaring ofcom.google.android.gms.common.api.Api$zze com.google.android.gms.identity.intents.zza.zza(android.content.Context, android.os.Looper, com.google.android.gms.common.internal.zzr, java.lang.Object, com.google.android.gms.common.api.GoogleApiClient$ConnectionCallbacks, com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.common.internal.zzab
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.internal.zzcdo.disconnect()
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgo
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.identity.intents.model.UserAddress.writeToParcel(android.os.Parcel, int)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgm
was not found, it is required for default or static interface methods desugaring ofjava.lang.Object com.google.android.gms.identity.intents.model.zzb.createFromParcel(android.os.Parcel)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzex
was not found, it is required for default or static interface methods desugaring ofboolean com.google.android.gms.internal.zzcdr.onTransact(int, android.os.Parcel, android.os.Parcel, int)
C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Typecom.google.android.gms.internal.zzbgo
was not found, it is required for default or static interface methods desugaring ofvoid com.google.android.gms.identity.intents.UserAddressRequest.writeToParcel(android.os.Parcel, int)
(Excuse my bad english)