Android Studio Copy Module -


i trying make copy of module in android studio, make small changes. how can that? found several solution did not work. instead of posting questions in several old topics decided open new question.

i created copy of module-directory, changed name of folder , edited package-name in manifest. stucked: how automatically change package in files , make working android-project again? tried select package , refactor change package in manifest or in project tree not in java-files.

thank you!

i copied/pasted within android studio, , worked me:

  1. in android studio, make sure have project view selected project pane.
  2. select module , copy.
  3. select folder name of project in project pane (this should name of project , parent directory module).
  4. paste in (it ask rename it).
  5. add new module settings.gradle file.

    include 'old-module', "new-module"

  6. rebuild/sync project (you should see module option now)

  7. run on device/emulator.

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -