Let's say I have 5 different apps. They all need to implement a feedback form.
I'm thinking to write a new generic app that has a feedback form and few other activities so all my apps will able to utilize it. My final goal would be something like calling startActivityForResult()
then have the feedback form app takes care of everything.
I'm stuck on how to setup all this. I've tried to create a new module from one of the apps but ended up all 5 apps have a different copy of the module which makes future modification hard. I've also tried to create a new project then reference it as described here. Android studio complaints
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :feedbackform. Open File Show Details
What exactly steps should I do?
EDITED
my settings.gradle
:
include ':feedbackform'
project(':feedbackform').projectDir = new File('../FeedbackForm/app')
after adding the above, Android studio will create compile project(path: ':feedbackform')
in my gradle
One thing I forgot to mention is that I do not want to upload any of them to cloud. Everything should be kept local.