Skip to content
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

App build fails if proguard is enabled #9

Open
Udbhav12 opened this issue Dec 14, 2018 · 0 comments
Open

App build fails if proguard is enabled #9

Udbhav12 opened this issue Dec 14, 2018 · 0 comments

Comments

@Udbhav12
Copy link

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'.
@Udbhav12 Udbhav12 changed the title Proguard issues crash App build fails if proguard is enabled Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant