使用Viewpager时,support.v4找不到,class not found异常解决方法

来源:互联网 发布:个股历史pe数据查询 编辑:程序博客网 时间:2024/05/16 09:58

使用jar包时,明明jar包存在。却报找不到这个jar包中的类或者方法,出现class not found异常,解决方法如下:

第一步:右键工程properties,打开bulid path面板,点击右边的order and Export


第二步: 将对应jar打钩:比如图中的android-support-v4.jar


点击OK即可。

是因为Eclipse编译时没有把它编译进去。

0 0
原创粉丝点击