Process: .., PID: 8066
                                         java.lang.RuntimeException: Unable to start activity ComponentInfo{.../....activity.MainActivity}: java.lang.IllegalStateException: TypeToken must be created with a type argument: new TypeToken<...>() {}; When using code shrinkers (ProGuard, R8, ...) make sure that generic signatures are preserved.
                                             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2958)
                                             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3093)
                                             at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
                                             at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
                                             at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
                                             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
                                             at android.os.Handler.dispatchMessage(Handler.java:106)
                                             at android.os.Looper.loop(Looper.java:193)
                                             at android.app.ActivityThread.main(ActivityThread.java:6840)
                                             at java.lang.reflect.Method.invoke(Native Method)
                                             at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)
                                         Caused by: java.lang.IllegalStateException: TypeToken must be created with a type argument: new TypeToken<...>() {}; When using code shrinkers (ProGuard, R8, ...) make sure that generic signatures are preserved.
                                             at vo1.<init>(SourceFile:9)
                                             at nu1.A(SourceFile:50)
                                             at a.onCreate(SourceFile:192)
                                             at ....activity.MainActivity.onCreate(SourceFile:1)
                                             at android.app.Activity.performCreate(Activity.java:7144)
                                             at android.app.Activity.performCreate(Activity.java:7135)
                                             at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
                                             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2938)
                                             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3093)
                                             at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
                                             at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
                                             at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
                                             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
                                             at android.os.Handler.dispatchMessage(Handler.java:106)
                                             at android.os.Looper.loop(Looper.java:193)
                                             at android.app.ActivityThread.main(ActivityThread.java:6840)
                                             at java.lang.reflect.Method.invoke(Native Method)
                                             at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)


# Gson
-keep class com.google.gson.stream.** { *; }
-keep class com.google.gson.** { *; }
-dontwarn com.google.gson.**

# TypeToken usage
-keepclassmembers class * {
    **[] EMPTY;
}
-keepclassmembers class * {
    *;
}
-keepattributes Signature

Комментариев нет:

Отправить комментарий