android 6.0 The method sin(float) is undefined for the type FloatMath 报错

6.0 报错
The method sin(float) is undefined for the type FloatMath
The method floor(float) is undefined for the type FloatMath

Android6.0使用 Math.floor 代替 FloatMath.floor 即可,见下图:
android 6.0 The method sin(float) is undefined for the type FloatMath 报错_第1张图片

解决方案是使用数学类:(float) Math,例如(float)Math.sqrt(),

你可能感兴趣的:(android 6.0 The method sin(float) is undefined for the type FloatMath 报错)