I am trying to make a copy of a module in Android Studio, to make small changes. How can I do that? I found several solution but i did not get any to work. Instead of posting my questions in several old topics i decided to open a new question.
I created a copy of the module-directory, changed the name of the folder and edited the package-name in the manifest. Now i am stucked: How do i automatically change the package in all files and make it a working android-project again? I tried to select the package and refactor it but that would only change the package in manifest or in the project tree but not in the java-files.
Thank you!
I just copied/pasted it from within Android Studio, and that worked for me:
Add the new module to your settings.gradle file.
include 'old-module', "new-module"
Rebuild/sync your project (you should see another module option now)
File -> New -> Import Module -> paste module's path DONE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With