Possible Duplicate:
Scala on Android: java.lang.NoSuchMethodError: java.lang.String.isEmpty
I’ve just released a new app on Android
I’ve optimized and obfuscated the code with proguard and tested extensively on my Android 2.3.3 phone. It works all right.
However, I keep getting really strange crash reports in the developer console, such as
java.lang.NoSuchMethodError: java.lang.String.isEmpty
Isn’t String.isEmpty() a framework function on all Android devices?
There is
TextUtils.isEmpty("your_String");, but haven’t seen aboutyour_string.isEmpty()I found that
your_string.isEmpty()worksafter 2.2as it was added in2.3 GingerBread. But, before that you can useTextUtils.isEmpty()