Tencent / VasDolly

Android V1 and V2 Signature Channel Package Plugin
Other
3.08k stars 388 forks source link

Method threw 'java.lang.NoClassDefFoundError' exception. #74

Closed yxyaxng closed 5 years ago

yxyaxng commented 5 years ago

升级了2.0.2, String channel = ChannelReaderUtil.getChannel(context)调用这个方法直接报错了。2.0.1没问题

lhkzx007 commented 5 years ago

我也一样~ 2.0.2有问题

jerry0864 commented 5 years ago

试试配置VasDolly.jar到项目下

heimashi commented 5 years ago

com.leon.channel:helper的2.0.2版本官方应该是忘了配置依赖了,因为看2.0.1的版本依赖是这样的:

+--- com.leon.channel:helper:2.0.1
|    \--- com.leon.channel:reader:2.0.1
|         \--- com.leon.channel:common:2.0.1

而2.0.2版本的依赖变成这样了:

+--- com.leon.channel:helper:2.0.2

故解决这个问题的办法可以这样,我们自己去引用这个依赖reader库即可:

api 'com.leon.channel:helper:2.0.2'
implementation 'com.leon.channel:reader:2.0.2'

亲测可用,希望官方下个版本修改下这个问题

ltlovezh commented 5 years ago

Sorry,请使用2.0.3