Following along with this tutorial, I've been able to create a working app module that compiles and runs, but fails if I pass a relative path to the generateAll method. It works fine if I specify an absolute path. My android studio project is composed of a few modules, structured like
project_root, with sub directories for each of it's modules
Each has it's own src directories, and I'm calling the generateAll like:
outDir parameter is expected to be relative to the project directory.
For example, suppose your
MyDaoGenerator class is in
projectA and you want to generate the DAO classes into a separate
module2 of the same project ...
projectA module1/ src/main/java/com.my.package/MyDaoGenerator.java module2/ src/main/java/ <-- target directory
outDir parameter would be