i'm trying to package, but i'm getting this error ...
# compose-desktop
s
i'm trying to package, but i'm getting this error when i run the
runReleaseDistributable
and the error is
Caused by: java.io.FileNotFoundException: serviceAccountKey.json (No such file or directory)
, the app runs perfectly fine the error happens when running only
runReleaseDistributable
, I need help, please.
a
Check if that class was removed by ProGuard
s
i haven't initialized proGuard in the project
a
I think runReleaseDistributable does that for you
s
solved by: 1. setting the
includeAllModules = true
in he build gradle file under
targetformats
2. and moving the json file to resource 3. lastly, by accessing the file using
ClassLoader.getSystemClassLoader().getResourceAsStream("serviceAccountKey.json")
thanks, @Alexander Maryanovsky
a
np