https://kotlinlang.org logo
#android
Title
# android
a

Allan Wang

07/14/2018, 5:07 AM
And lastly, there is a keyboard shortcut to convert java into compilable kotlin code. ctrl + alt + shift + k
n

neuber

07/15/2018, 3:11 AM
Java before public BoardDefaults(Context applicationContext) { this.context = applicationContext; res = this.context.getResources(); } kotlin after class BoardDefaults(private val context: Context) { private val res = context.resources }
I have issue here:
val bd = BoardDefaults(this.applicationContext) var i2cIndex = -1
expression 'boarddefaults' of thype 'boarddefaults cannot be invoked as a function. this function invked() is not found
this is issue
3 Views