Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to rename MainActivity file for Android #21

Closed
motazalnuweiri opened this issue May 31, 2023 · 6 comments · Fixed by #27
Closed

Unable to rename MainActivity file for Android #21

motazalnuweiri opened this issue May 31, 2023 · 6 comments · Fixed by #27
Assignees
Labels
bug Something isn't working

Comments

@motazalnuweiri
Copy link

Unable to rename MainActivity file for Android, I'm working on Windows 11

Config:

package_rename_config:
  android:
    app_name: My App
    package_name: com.test.my_app
    override_old_package: com.example.my_app
    lang: kotlin

Error message:

PathNotFoundException: Cannot rename file to 'android/app/src/main/kotlin/com/test/my_app/my_app\MainActivity.kt', path = 'android/app/src/main/kotlin/com/example/my_app\MainActivity.kt' (OS Error: The system cannot find the path specified.
, errno = 3)
ERR Code: 255
New MainActivity creation failed!!!
@OutdatedGuy
Copy link
Owner

Yo @motazalnuweiri, can you share the details of your android folder structure? A screenshot of the android folder with all its children in expanded view before running the rename command.

@OutdatedGuy OutdatedGuy self-assigned this Jun 1, 2023
@motazalnuweiri
Copy link
Author

@OutdatedGuy here a screenshot of my android folder

image

@OutdatedGuy OutdatedGuy added the bug Something isn't working label Jun 5, 2023
@OutdatedGuy
Copy link
Owner

It is working well on my mac, meaning it is a windows environment specific bug.

As I don't have a windows machine to test on, I'll just try to predict the cause and try a fix.

@OutdatedGuy
Copy link
Owner

@motazalnuweiri, can you try this PR and see if it resolves your issue.

@motazalnuweiri
Copy link
Author

@motazalnuweiri, can you try this PR and see if it resolves your issue.

It did fix the problem, thank you

@OutdatedGuy
Copy link
Owner

@motazalnuweiri, published new release with the fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants