I have two Android projects in Eclipse. I copied the one project from the other, then changed the app name (in strings.xml) and the project name
An application's unique identifier is the package name. If you change the package name and reinstall the app again, you will end up with two copies on your phone.
Eclipse can change it on all the places of your code automatically.
Just right click your project on the package explorer (project tree) and go to Android Tools->Rename Application Package
Voilà.
Change applicationId
on app gradle.
Change file_provider_authority in strings.xml
If you are using firebase then add new project on firebase and download the new google-services.json file and replace the old one with this.
Optionally change your app name as well.
For those who aren't using Android Studio and want to do it manually (e.g. if you're using React Native), I just recently went through this and had to change it in the following files:
index.android.js
android/settings.gradle
android/app/build.gradle
android/app/src/main/AndroidManifest.xml
android/app/src/main/java/com/<app id>/MainActivity.java
android/app/src/main/java/com/<app id>/MainApplication.java
Package name (in java).
The app name is also in the manifest, although I don't think that needs to be unique, but still would be good to change it for clarity.
if you are using Android studio then
Your project identifier is in your build.gradle
file just change the field applicationId "com.example.whatEver"
Hope it will work
For Android Studio users, you need to change your package name in AndroidManifest.xml and also in build.gradle file --> defaultConfig--> applicationId.