I am trying to access a .json file in src/main/resources in an android project but I keep getting that the variable input is null
I've made sure that the file is in the specified location.
private val CREDENTIALS_FILE_PATH = "src/main/resources/credentials.json"
private var input = javaClass.getResourceAsStream(CREDENTIALS_FILE_PATH)
I'm not sure why this is happening. Is my syntax wrong? Thanks!