react-native-text-detector
react-native-text-detector copied to clipboard
App build fails if proguard is enabled
Your Environment
- react-native-text-detector : 0.6.0
- Platform: Android
- React Native version : 0.57.7
Expected Behavior
App should build successfully
Actual Behavior
App build fails
Context
I use App Center for building my React Native App for Android. I have enabled proguard. My app build is failing. Here are the logs
Printing usage to [/Users/vsts/agent/2.144.0/work/1/s/android/app/build/outputs/mapping/release/usage.txt]... Removing unused program classes and class elements... Original number of program classes: 11336 Final number of program classes: 7771 Inlining subroutines... Obfuscating... Printing mapping to [/Users/vsts/agent/2.144.0/work/1/s/android/app/build/outputs/mapping/release/mapping.txt]... Preverifying... Unexpected error while performing partial evaluation: Class = [com/google/android/gms/internal/zzcih] Method = [zza(Ljava/lang/String;[Lcom/google/android/gms/internal/zzcob;[Lcom/google/android/gms/internal/zzcog;)[Lcom/google/android/gms/internal/zzcoa;] Exception = [java.lang.IllegalArgumentException] (Can't find common super class of [com/google/android/gms/internal/zzcob] (with 1 known super classes) and [java/lang/String] (with 2 known super classes)) Unexpected error while preverifying: Class = [com/google/android/gms/internal/zzcih] Method = [zza(Ljava/lang/String;[Lcom/google/android/gms/internal/zzcob;[Lcom/google/android/gms/internal/zzcog;)[Lcom/google/android/gms/internal/zzcoa;] Exception = [java.lang.IllegalArgumentException] (Can't find common super class of [com/google/android/gms/internal/zzcob] (with 1 known super classes) and [java/lang/String] (with 2 known super classes)) Warning: Exception while processing task java.io.IOException: java.lang.IllegalArgumentException: Can't find common super class of [com/google/android/gms/internal/zzcob] (with 1 known super classes) and [java/lang/String] (with 2 known super classes) :app:transformClassesAndResourcesWithProguardForRelease FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.