First,if there's a json file in src/main/kotlin/resources/locales/en_US.json, and when I try to access this file or its inputstream by using the distributeable package, it always return null. Neither Using jar distribution nor execute the run task have these matter.
I tried these way to acess the file:
First,if there's a json file in
src/main/kotlin/resources/locales/en_US.json
, and when I try to access this file or its inputstream by using the distributeable package, it always return null. Neither Using jar distribution nor execute therun
task have these matter. I tried these way to acess the file:this::class.java.getResource
androidx.compose.ui.res.useResource
ClassLoaderResourceLoader.load
Information:
build.gradle.kts: