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

Getting error : type 'FileSystemException' is not a subtype of type 'String' #2

Open
ThinkSimple opened this issue Jul 1, 2020 · 4 comments

Comments

@ThinkSimple
Copy link

Hey, my attempt to change the package name ends with the following line:

Getting error : type 'FileSystemException' is not a subtype of type 'String'

Is this a known error?

@Victor-Dev77
Copy link

J'ai la même erreur...
Sur un autre projet j'ai pu le faire fonctionner sans problèmes mais sur un projet actuel j'ai cette erreur.
Est-ce lié à une configuration de projet (Flutter, Graddle, ...?) ou une version de Flutter ?

@Victor-Dev77
Copy link

this issue is cause by "android_package_name" param.

Instead of renaming the Android architecture (com.example.project_name), it creating new folders and not copy paste MainActivity file into new package architecture and not delete old package (com.example.project_name)

Then, not rename Manifest files. So I think that create conflict to parsing file and sending this error.

To conclude, skip this param and if u want rename android package architecture, u must do manually...

@JSWilProf
Copy link

This error only occurs on Windows, on macOS it works well with the same project!

@Syed-Waleed-Shah
Copy link

This package is what you need 🔥 Too much flexibilities

https://pub.dev/packages/rename_app

Rename App The only flutter package which changes app name for all platforms with sound null safety! If you want to autmatically change your flutter app name with a single command then you are at the right pacakge. This package gives you too many flexibilities through too many variants of its commands. Read the details below to know in more details

✊ Dont forget to star the github repo if you found this package useful 😇

Features 🔥

✅ Remane Android Project
✅ Remane IOS Project
✅ Remane WEB Project
✅ Remane Windows Project

How To Rename ? 🛠

1) ADD THE PACKAGE TO DEPENDENCIES IN pubspec.yaml

flutter pub add rename_app


OR


dependencies: rename_app: ^latest_version


2) PROVIDE THE APP NAME

You can provide app name in the following ways

  • Same name for all apps

flutter pub run rename_app:main all="My App Name"

  • Seperate name for specified platform(s) and same for all others

flutter pub run rename_app:main android="Anroid Name" ios="IOS Name" others="Others Name"

  • Seperate name for each platform

flutter pub run rename_app:main android="Android Name" ios="IOS Name" web="Web Name" mac="Mac Name" windows="Windows Name"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants