2 baidu 19694879 baidu_19694879 于 2017.01.09 17:40 提问

androidStudio netty已经导入,但是运行时提示找不到netty包 20C

项目中已经将netty的 jar包导入进去了libs文件夹中,但是运行时,还是提示找不到netty包,下面是
日志信息:

1-07 09:41:42.713 10019-10019/com.orangewealth.orangeclient D/Volley: [1] DiskBasedCache.clear: Cache cleared.
01-07 09:41:42.728 10019-10019/com.orangewealth.orangeclient W/dalvikvm: VFY: unable to find class referenced in signature (Lio/netty/channel/Channel;)
01-07 09:41:42.728 10019-10019/com.orangewealth.orangeclient W/dalvikvm: VFY: unable to find class referenced in signature (Lio/netty/channel/Channel;)
01-07 09:41:42.728 10019-10019/com.orangewealth.orangeclient W/dalvikvm: VFY: unable to find class referenced in signature (Lio/netty/channel/Channel;)
01-07 09:41:42.729 10019-10019/com.orangewealth.orangeclient W/dalvikvm: Unable to resolve superclass of Lcom/samton/ibensdk/mainSDK/IBenChatClientHandler; (8073)
01-07 09:41:42.729 10019-10019/com.orangewealth.orangeclient W/dalvikvm: Link of class 'Lcom/samton/ibensdk/mainSDK/IBenChatClientHandler;' failed
01-07 09:41:42.729 10019-10019/com.orangewealth.orangeclient W/dalvikvm: Unable to resolve superclass of Lcom/samton/ibensdk/mainSDK/IBenChatClientHandler; (8073)
01-07 09:41:42.729 10019-10019/com.orangewealth.orangeclient W/dalvikvm: Link of class 'Lcom/samton/ibensdk/mainSDK/IBenChatClientHandler;' failed
01-07 09:41:42.730 10019-10019/com.orangewealth.orangeclient I/dalvikvm: Could not find method com.samton.ibensdk.mainSDK.IBenChatClientHandler.getInstance, referenced from method com.samton.ibensdk.mainSDK.IBenChatClient.ready

3个回答

zhangpan_soft
zhangpan_soft   2017.01.09 17:42

如果是用的myeclipse|eclipse的话,你找到这个jar,右键,找到build path-->add build path重新部署运行,ok

zhangpan_soft
zhangpan_soft   2017.01.09 17:45

不好意思,没看到是Android studio,你右键,找到有个叫as....的,点击下就ok了,重新部署运行

songlinjiang
songlinjiang 根据提示“unable to find class referenced in signature”为这个jar包添加引用,
11 个月之前 回复
baidu_19694879
baidu_19694879 这样的部署已经操作过了
11 个月之前 回复
ssh159
ssh159   2017.01.09 18:16

切换project
app-libs 下面的jar包,右键-add as library
即可(识别之后这个会消失),

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!