4

I know How to rename the package name in Android studio. I have done this every time and its easy to do in android studio . but Now I am stuck in a condition which is as below

My package name

com.example.andygreson.talkmania

where as I want it to be

com.andygreson.talkmania

I want to delete the example directory from the package name. But when Ever I do , it deletes all the project inside it.

Please tell me how to do this

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
Allay Khalil
  • 674
  • 3
  • 11
  • 31

1 Answers1

4

In AndroidStudio ,

Take backup of your com.example.andygreson.talkmania package then Create new package you want com.andygreson.talkmania now copy all files from last package and paste into this one.

dont forget to change in AndroidManifest file

Refresh studio. its done.

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142