Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

20
  • 28
    I also need to edit file BUCK to replace old package value with the new one. BTW, the 2 files MainAcitivity.java and MainApplication.java should be relocated to the new physical path. Commented Aug 30, 2016 at 2:02
  • 6
    I also renamed the directory android/app/src/main/java/com/old_app_name/ to ...com/new_app_name/ and it seems to work. Commented Mar 8, 2017 at 3:24
  • 2
    I had error "Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE" until I manually forced cleaning of the android device simulator: adb uninstall my.package.name ... So directions are fine, but android simulator can "hold on" to old info in a bad way that makes it look like directions don't work. (And simply uninstalling the app did NOT fix this!) Commented Jun 11, 2017 at 0:10
  • 7
    For RN 0.60+, there's another LoC that has to be changed in MainApplication#initializeFlipper: Class<?> aClass = Class.forName("MY.APP.NEW_ID"); Commented Jul 15, 2020 at 14:34
  • 7
    if you are using firebase then you also need to replace old package value in two instances of package_name in google-services.json Commented Sep 15, 2020 at 17:50