build with api 23

之前是api22,前阵换了api23 去编译,发现了不少错,先记录如下

http://stackoverflow.com/questions/32153318/httpclient-wont-import-in-android-studio

HttpClient was deprecated in API Level 22 and removed in API Level 23. You can still use it in API Level 23 and onwards if you must, however it is best to move to supported methods to handle HTTP. So, if you're compiling with 23, add this in your build.gradle:

android {
    useLibrary 'org.apache.http.legacy'
}

要用useLibrary 你需要升级你的 build.gradle 到 1.5.0

https://github.com/JakeWharton/ViewPagerIndicator/issues/366

Not working with api 23. FloatMath is deprecated. use Math instead.
If you look at the source for FloatMath, it is just doing this:
public static float ceil(float value) {
return (float) Math.ceil(value);
}
very straightforward to fix.

猜你喜欢

转载自ycljf86.iteye.com/blog/2280281
23