1

How can I use Java modules in an Android app repository? In particular, what directory structure should I use?

I have a project in mind for which I would like to have a GUI-independent core Java 9 module (which could be distributed independently) and an Android GUI layer on top.

I created a new IntelliJ project using the 'Android > Empty Activity' template, which created an overwhelmingly complicated directory structure:

directory structure

Where would I put in this directory structure the core module—which could be added, for example, as a git submodule—? At the same level as app? E.g.:

enter image description here

Or within app/libs?

1
  • Use a directory structure that organizes your code in a way that makes it easy for you to find things. Commented Dec 25, 2019 at 17:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.