I'm using VSCode. I have the following in myApi.kt
:
package com.mycompany.myproject.myapi
data class MyClass(
val accountNumber: String,
val state: String,
val country: String
)
...and I have the following in myApp.java
:
import com.mycompany.myproject.myapi.*;
MyClass myObject = new MyClass();
Compilation and execution are all fine. The only problem is VSCode gives me a red squigly underline beneath references to MyClass
in the java file. Hovering over it, it says:
MyClass cannot be resolved to a type Java(16777218)
I have the Kotlin plug-in installed in VSCode.
How can I get VSCode to recognize this Kotlin class in my java file?
This is not yet supported based on this open issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With