I updated my android studio to 2.1.2 and opened previous project.Now it shows that FloatMath.sqrt() is deprecated and cannot resolve method 'sqrt(float)'
Asked
Active
Viewed 1.4k times
8
-
Use (float)Math.sqrt(...) – Eenvincible Aug 02 '16 at 07:56
1 Answers
42
Just type cast it with float as -
(float)Math.sqrt(...)
FloatMath
is deprecated in API 22
Reference link - https://developer.android.com/reference/android/util/FloatMath.html

Onkar Nene
- 1,359
- 1
- 17
- 23