更新support library v23.1.1后,viewpagerindicator报错提示FloatMath.ceil()方法不存在
来源:互联网 发布:淘宝卖虚拟物品货源 编辑:程序博客网 时间:2024/05/19 02:25
今天更新了support library 23.1.1后,原来的项目一编译就提示报错:提示FloatMath.ceil()方法不存在。
viewpagerindicator已经很久没更新了,所以,这bug只能自己修了,修也容易。
原因分析:
因为support library 23.1.1之后,FloatMath这个类的一些方法被去掉了,比如ceil(),所以,我们只要把使用到FloatMath.ceil()方法的这个地方给替换即可。
解决办法:
将viewpagerindicator中的LinePageIndicator.java里所有用到FloatMath.ceil()的行:
替换为:
1
return(int)Math.ceil(result);
0 0
- 更新support library v23.1.1后,viewpagerindicator报错提示FloatMath.ceil()方法不存在
- android 更新sdk23以后,报错提示FloatMath.ceil()和FloatMath.sin()方法不存在
- 导入viewPagerIndicator时报错提示FloatMath.ceil()不存在解决方法
- FloatMath.ceil()报错
- adt更新后,eclipse无法新建android项目,提示需要support library v8
- FloatMath.sqrt android6.0 23报错
- FloatMath.sqrt android6.0 23报错
- as 报错 Error:(303, 27) 错误: 找不到符号 符号: 方法 sin(float) 位置: 类 FloatMath
- AS 报错 Error:(303, 27) 错误: 找不到符号 符号: 方法 sin(float) 位置: 类 FloatMath
- AS报错Error(303,27),找不到符号 方法 FloatMath.sin()
- android Support Library升级到 23.0.0 报错解决方案
- Android studio 新建项目\values-v23\values-v23.xml报错
- Android FloatMath.ceil过时的解决办法
- Android FloatMath.ceil过时的解决办法
- import android.support.v4.app.Fragment后调用add方法报错
- linux 安装报错提示 readline.h不存在
- as更新到2.2.2后不会报错和自动提示
- 安装oracle后实例不存在:Oracle报错 ORA-01078
- tomcat配置文件web.xml与server.xml解析--重要
- 机器学习算法中如何选取超参数:学习速率、正则项系数、minibatch size
- 我的开源项目--华尔街见闻(仿)
- MySQL审计之插件
- 深度学习之图像分割 《Fully Convolutional Networks for Semantic Segmentation》—FCN
- 更新support library v23.1.1后,viewpagerindicator报错提示FloatMath.ceil()方法不存在
- 各种学习资料查阅网站地址
- Mysql之统计数据
- 如何修改vs2013所建项目的.net framework版本
- Android5.0如何将第三方so库打包到apk
- 访问WEB-INF目录中的JSP文件
- java-XML文件处理
- 在虚拟主机上布署Node.js的可行性分析
- 通过WebApplicationContextUtils工具类获取ApplicationContext对象