原地址:https://blog.csdn.net/a865074284/article/details/66973217

 

使用eventbus时,在debug版本中,是没有问题的,但是release打包后,就出现了这个问题(转)Subscriber class io.rong.imkit.j has no public methods called onEvent

257行是EventBus.getDefault().register(this);

 

解决办法:在打包的时候,混淆出问题了

需要加上

 
  1. -keepclassmembers class ** {

  2. public void onEvent*(**);

  3. }

这个混淆

相关文章:

  • 2021-07-14
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-09-06
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2021-08-06
  • 2022-12-23
  • 2021-08-17
  • 2021-10-21
  • 2022-03-09
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案