I created a new app in Android Studio, everything went fine, I created a signed apk, but I have an old app on Play Store published, I managed to locate the key.keystore for that old app, which i originally did in Eclipse two years ago, so after opening my old apk in Keystore Explorer, I was able to remember my old store password, alias and key password, so I went back into Android Studio, clicked Generate New Signed apk, I selected my old keystore path, filled in the info (store password, alias, key password, and it left me generate the new signed apk with the old key.keystore, so I'm assuming I actually got the new AS app signed with my old Eclipse key.keystore or it wouldn't have left me generate a signed apk right? or run it in emulator until I entered the correct info.
Now the next problem I'm having is renaming the package, what I need to do is rename the new app/package to the same name as the old app/package (com.name.radio) I read that you do this in the build.gradle..... When I created my new app in AS I was able to renam the 3 folders under java first with no problems (to name.ie.radio) to do this I select the folder I want to rename, click Show Options Menu, untick Compact Empty Middle Packages, right click my folder & select Refactor > Rename > Rename Package, then I had to correct that in the build.gradle, worked fine the first time.
Now I want to rename my new app / package again, to the same name as my old app (com.name.radio) so I tried setting new package name to com, but it doesn't allow me, saying that file already exists. https://i.stack.imgur.com/cNgA5.png
Should I delete the com folder at: \app\build\generated\source\r\release There's no point in trying to rename it in the build.gradle yet right?
Someone help me out here it's like a guessing every night. I just want to publish an update to my old app without having to publish a fresh app.