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

后端 未结 4 757

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:29

    Use TextUtils.isEmpty() instead, available since API level 1.

提交回复
热议问题