Last active
October 31, 2019 16:07
-
-
Save yogiprsetya/3bfb4999782cec1f39cff1acbcd9fb8c to your computer and use it in GitHub Desktop.
Change package name and appID for Android in React Native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Manually switched the old and new package ids: | |
PROJECT_NAME => new.app.id | |
android/app/src/main/java/com/PROJECT_NAME/MainActivity.java: | |
package MY.APP.ID; | |
In android/app/src/main/java/com/PROJECT_NAME/MainApplication.java: | |
package MY.APP.ID; | |
In android/app/src/main/AndroidManifest.xml: | |
package="MY.APP.ID" | |
In android/app/build.gradle: | |
applicationId "MY.APP.ID" | |
In android/app/BUCK: | |
android_build_config( | |
package="MY.APP.NEW_ID" | |
) | |
android_resource( | |
package="MY.APP.NEW_ID" | |
) | |
Gradle' cleaning in the end (cd android: | |
run ./gradlew clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment