question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Files are deleted after changing package name.

See original GitHub issue

Files are being deleted while changing the package name.

Like if my package name is: com.example

and I want to change it with: com.example.app

Then all the java files are deleted from the main directory.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
yfunkcommented, Nov 5, 2020

I had the same issue, the workaround i found was to manually create the folder structure in android/app/src/main/java and move MainActivity.java and MainApplication.java there before running the command.

In the example above you would have to create android/app/src/main/java/com/my/app/bundle/name, move you Java files there and then run npx react-native-rename "App Name" -b "com.my.app.bundle.name"

0reactions
vomchikcommented, Dec 5, 2020

Fixed in v2.6.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rename package in Android Studio - Stack Overflow
Open your app build.gradle file and change the Application Id in defaultConfig to the same name as in manifest and rebuild the project....
Read more >
How to rename package name in Android Studio - YouTube
We can rename using manifest file STEPS BY STEPS OF RENAMING USING PACKAGE NAME 1. Click on the gear icon on your project...
Read more >
So, you've decided to change your r package name
Part 1: Changing the R package name. When you change your package name, here is a list of things you need to do....
Read more >
Upload Process with the same Package Name, link to the ...
Hi, i have publish a Process with the Package Name ex. 'Test01_Project' with the version 1.0.1-alpha.4. After view rework, i set a complete ......
Read more >
How to Rename Package Name in Android Studio?
Step 1: To rename package name in Android studio open your project in Android mode first as shown in the below image. Step...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found