【Android】ClassCastException: Class cannot be cast to Parameter

Android ClassCastException: Class cannot be cast to Parameter

解决方案

检查你的混淆,是不是把数据类添加进去了

# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items). 
 -keep,allowobfuscation,allowshrinking interface retrofit2.Call 
 -keep,allowobfuscation,allowshrinking class retrofit2.Response 
  
 # With R8 full mode generic signatures are stripped for classes that are not 
 # kept. Suspend functions are wrapped in continuations where the type argument 
 # is used. 
 -keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation 

猜你喜欢

转载自blog.csdn.net/weixin_42473228/article/details/143201067