Following along with this tutorial , I was able to create a working module for the application that compiles and runs, but fails if I pass the relative path to the generateAll method. It works fine if I point the absolute path. My Android studio project consists of several modules, structured as
project_root, with subdirectories for each of the modules
/ daogenerator
/attachment
Each has its own src directories, and I call generateAll as:
new DaoGenerator().generateAll(schema,
"../app/src");
resulting in an io error indicating that the directory does not exist. I changed the path to many reasonable alternatives and confirmed that the paths exist on the disk but still get the error. The absolute path works fine, so I'm trying to figure out what I am missing to make it work with the relative path. Thank you
source
share