I have a `Utils.kt` file in the com.demo.app.utlis...
# android
k
I have a
Utils.kt
file in the com.demo.app.utlis package
Copy code
@file:JvmName(name = "Utils")

package com.demo.app.utils

//Fragments Tags
const val Login_Fragment = "LoginFragment"
const val SignUp_Fragment = "SignUpFragment"
const val ForgotPassword_Fragment = "ForgotPasswordFragment"


//Email Validation pattern
const val regEx = "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b"
when I import it in a Java file it works fine and I can call it like
Utils.regEx
but when i import it in a kotlin file it shows as a constant to th package (see image) Can anyone explain why this is so and how to solve this