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

Update proguard rule #4289

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open

Update proguard rule #4289

wants to merge 1 commit into from

Conversation

longld103
Copy link

I got a crash report for Android application when publish it to Google Play store. It took me several hours of testing on multiple devices and I found out that the cause of the error was a missing rule in the progurad file.


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

I got a crash report for Android application when publish it to Google Play store. It took me several hours of testing on multiple devices and I found out that the cause of the error was a missing rule in the progurad file.
@JakeWharton
Copy link
Collaborator

What was the exception?

@longld103
Copy link
Author

@JakeWharton This is the exception:

java.lang.ClassCastException
     FATAL EXCEPTION: main
Process: com.my.androidapp, PID: 22593
java.lang.ClassCastException
	at androidx.appcompat.app.p.a(SourceFile:1)
	at com.my.androidapp.main.LoadActivity$a.b(SourceFile:5)
	at q3.g$b$a$a.run(SourceFile:38)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7664)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Below is the mapping file:

com.my.androidapp.main.LoadActivity$1 -> com.my.androidapp.main.LoadActivity$a:
# {"id":"sourceFile","fileName":"LoadActivity.java"}
    com.my.androidapp.main.LoadActivity this$0 -> a
    1:6:void <init>(com.my.androidapp.main.LoadActivity):67:67 -> <init>
    1:6:void onFailure(retrofit2.Call,java.lang.Throwable):92:92 -> a
      # {"id":"com.android.tools.r8.residualsignature","signature":"(Lq3/b;Ljava/lang/Throwable;)V"}
    1:10:void onResponse(retrofit2.Call,retrofit2.Response):71:71 -> b
      # {"id":"com.android.tools.r8.residualsignature","signature":"(Lq3/b;Lq3/r;)V"}
    11:15:void onResponse(retrofit2.Call,retrofit2.Response):85:85 -> b
    16:19:void onResponse(retrofit2.Call,retrofit2.Response):86:86 -> b

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

Successfully merging this pull request may close these issues.

2 participants