Scala on Android: java.lang.NoSuchMethodError: java.lang.String.isEmpty

后端 未结 4 758

I am getting following Exception on Android 2.2.1:

java.lang.NoSuchMethodError: java.lang.String.isEmpty

I am calling text.isEmpty

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-18 08:22

    java.lang.String.isEmpty() was added in Gingerbread (2.3). You will have to write your own replacement function...

提交回复
热议问题