In android studio : How to change packages file path

android

Solution

what i'm doing is to open some class file, go to the top and choose the part of the package you want to rename, right click on it and go to Refactor > Rename. I guess Studio should ask you then whether you want to rename either directory or whole package - choose the latter.

E.g when you have `package pl.warsjawa.android2;` and want to change `warsjawa` into `dzwoniec` right click on warsjawa -> Refactor -> Rename.

Problem

So I know how to rename a package, however that just changes the end package com.example.android.navigationdrawerexample; In this example what I want to do is get rid of the .example How would you go about this without breaking things?

Original source