We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KLog 用在 kotlin 里面打印 会报错,出现数组下标越界 代码如下 : navigation.setOnNavigationItemSelectedListener { item -> when (item.itemId) { R.id.order -> { ## Klog.d("order") return@setOnNavigationItemSelectedListener true } } false }
ArrayIndexOutOfBoundsException: length=0; index=0
The text was updated successfully, but these errors were encountered:
我也遇到了0 0
Sorry, something went wrong.
遇到同样问题,应该是在KLog.d("xxxxx")调用中没有设置Tag,结果在Kotlin中因语法识别进入到了d(String tag, Object... objects) 接口,结果导致了错误。 如果增加TAG参数就不会有此问题,但是增加TAG感觉代码多了一些,有点麻烦,希望能尽快fix这个问题。
我自己重写了一份,XLog,支持Kotlin
No branches or pull requests
KLog 用在 kotlin 里面打印 会报错,出现数组下标越界
代码如下 :
navigation.setOnNavigationItemSelectedListener {
item ->
when (item.itemId) {
R.id.order -> {
## Klog.d("order")
return@setOnNavigationItemSelectedListener true
}
}
false
}
ArrayIndexOutOfBoundsException: length=0; index=0
The text was updated successfully, but these errors were encountered: