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

problem when using proguard #175

Open
Mido-xyz opened this issue Feb 21, 2024 · 0 comments
Open

problem when using proguard #175

Mido-xyz opened this issue Feb 21, 2024 · 0 comments

Comments

@Mido-xyz
Copy link

Mido-xyz commented Feb 21, 2024

i add this line to proguard rules

-keepattributes Signature
-keepclassmembers class * extends com.onegravity.rteditor.spans.RTSpan {
public (int);
}

and when i set "minifyEnabled true" the app crash

Caused by java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
at com.onegravity.rteditor.effects.BooleanEffect.(BooleanEffect.java:34)
at com.onegravity.rteditor.effects.BoldEffect.(BoldEffect.java:24)
at com.onegravity.rteditor.effects.Effects.(Effects.java:37)
at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8893)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

can you help me please.

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