Not allowed to make global variable
I have made this class:
class GlowMap(private val glowDeliveryInfo: GlowDeliveryInfo, private val supportMapFragment: Fragment, val context: Context) : OnMapReadyCallback {
which i tried to make a object on like this in another class:
var glowMap: GlowMap? = null
And whenever i try to run i get this error:
Execution failed for task '
appkaptHuaweiQaKotlin'.
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
java.lang.reflect.InvocationTargetException (no...