After changing the package, this window will look like: On clicking the “OK” button on this dialog, Motodev Studio for Android processes your requirement to change the package name. The process takes a minute second to complete and you can see the changes here: The first step of changing the package name is now completed. The next step is. I want to change the package name, so my phone will not update the appanymore to a newer version. Deactivate auto update does not work, with every firmware update from samsung the phone will automatically update the app to v11. Package name successfully changed to “info.xyz.yourapplication“. Method III – How to rename android app package name in Android Studio using existing package. This method is also same as the second method. Just like second, we change package name “com.androidride.myapplication” to “info.xyz.yourapplication“. Another good method is: First create a new package with the desired name by right clicking on the Java folder → New → Package. Then, select and drag all your classes to the new package. Android Studio will refactor the package name everywhere. Finally, delete the old package.
Compiled ok. Not accepted by G Play, because... The APK or Android App Bundle package must have the name ---old production release---
Manually editing AndroidManifest.xml with no result:
<?xml version='1.0' encoding='UTF-8'?>
-<manifest android:installLocation='internalOnly' android:versionName='ERLA_AN' android:versionCode='8' package='re.revive.eloisa' xmlns:android='http://schemas.android.com/apk/res/android'>
According to G Play, package would be: erla.eloisa
???Thank you
Change App Package Name with single command. It makes the process very easy and fast.
What It does? #
- [x] Update AndroidManifest.xml files for release, debug & profile
- [x] Update build.gradle file
- [x] Update MainActivity file. Both java & kotlin supported.
- [x] Move MainActivity file to new package directory structure
- [x] Delete old package name directory structure.
How to Use? #
Add Change App Package Name to your pubspec.yaml
in dev_dependencies:
section
Update dependencies
Run this command to change the package name.
Where com.new.package.name
is the new package name that you want for your app. replace it with any name you want.
Meta #
Atiq Samtia– @AtiqSamtia – me@atiqsamtia.com
Distributed under the MIT license.
Contributing #
How To Change Android Package Name Android Studio
How To Change Package Name Android Studio
- Fork it (https://github.com/atiqsamtia/change_app_package_name/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request