IfEmpty and ifBrank in Kotlin

If you want to check for whitespace, if else is fine, but ifEmpty and ifBlank are also useful You can use.

Read more

Share

NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener

Phenomenon. Android When I built the app in Things, there was an error log in Logcat. This error didn’t seem to appear before… The app doesn’t force-quit, it just runs an error log, which is strange. Error log. Logcat Solution. I looked it up and this is Android Things are not the problem, but a bug in AndroidX seemingly Add implementation 'androidx. core:1.5.0-alpha01' to app/build.gradle and the error disappeared. core:core:1.5.0-alpha01’` to app/build.

Read more

Share