使用sdk的DefaultYZClient 获取token时报缺少依赖jar包,麻烦提供一下接口调用这块需要依赖的所有jar包
Exception in thread "main" java.lang.NoClassDefFoundError: okhttp3/ConnectionPool
at com.youzan.cloud.open.sdk.core.HttpConfig$HttpConfigBuilder.<init>(HttpConfig.java:185)
at com.youzan.cloud.open.sdk.core.HttpConfig.builder(HttpConfig.java:99)
at com.youzan.cloud.open.sdk.core.client.core.DefaultYZClient.<init>(DefaultYZClient.java:29)
at com.by.yzy.YzTokenUtil.main(YzTokenUtil.java:132)
Caused by: java.lang.ClassNotFoundException: okhttp3.ConnectionPool
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|