junedomingo / react-native-rename

Rename react-native app with just one command
MIT License
2.63k stars 261 forks source link

Application Crash #102

Closed BSDevCode closed 3 years ago

BSDevCode commented 4 years ago

Hello, i try to change the application name & bundle installation on emulator working, when i try to open the app, it crash... no error... just crash and still crash... "react-native": "0.62.2" any help? how i can fix it?

command runned is: react-native-rename "NewName" -b com.company.newname

thanks!

ShrikantRao commented 4 years ago

Same issue here. I'm also on same version (0.62).

No App crash with no error on console. I tried gradle clean and various other command but no luck.

I have set the app name containing 2 words (with a space) but when I check the app drawer the app shows just first word.

BSDevCode commented 4 years ago

yeah, no error app or console, i try with a name like Konan, no space or other, new bundle was... com.company.konan, before was com.company, maybe this is the problem?!? i hope that who made this package fix it, since i need it, i need to change my app name many time, because i build app that call api... maybe someone have other way to change app name and bundle ?

mohit23x commented 4 years ago

same issue, react native 0.62 app crashes on start

i think the issue is because some new files are introduces with RN 0.62 i found the package was not able to change the package name at three files -

changing the bundle identifier manually at these files fixed the issue for me

sametpalitci commented 4 years ago

same problem :/

sametpalitci commented 4 years ago

I solved it using this : https://github.com/mayconmesquita/react-native-rename-next

bilalyaqoob commented 4 years ago

there is the solution https://stackoverflow.com/questions/62805433/react-native-app-blinks-for-second-and-stops

gitnasr commented 4 years ago

this issue was for me. the problem that package removes MainActivity.java file. you have to restore it to the new directory and modify package name inside it too and MainApplication too

\android\app\src\main\java\com

AliAmjadHassan commented 3 years ago

Install react-native-rename globally and then: Steps to follow to change package and App Name Correctly:

  1. Copy MainActivity.java and MainApplication.java from .\android\app\src\main\java\com\ and paste it somewhere else
  2. Run command react-native-rename "NewName" -b com.company.newname
  3. Paste MainActivity.java and MainApplication.java in .\android\app\src\main\java\com\
  4. Change the name of the package in MainActitvity.java and MainApplication.java manually
  5. go to ./android and run ./gradlew clean command from windows PowerShell
  6. Delete any existing debug-app already installed on phone.
  7. run command to start the app
darron1217 commented 3 years ago

The path of ReactNativeFlipper.java is not changing on 2.6.0 latest.

mshahzaib1629 commented 3 years ago

Thanks @AliAmjadHassan, it's working for me 👍

vomchik commented 3 years ago

Fixed in the last release v2.7.0