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

Issue when running Code #18

Open
Yapistirsat opened this issue Sep 19, 2023 · 1 comment
Open

Issue when running Code #18

Yapistirsat opened this issue Sep 19, 2023 · 1 comment

Comments

@Yapistirsat
Copy link

According to attached file there is problem when running code:

Untitled

@ayushhthakurr
Copy link

Hi , I'm a GSSoc'24 contributor , Based on the error message in the image you provided, it seems like you’re encountering a FormatException: Unexpected character (at character 1). This error typically occurs when there’s an issue with the format of a file or string that your program is trying to read.

here is the approach I can use :

  1. Check the file or string causing the error: The error message should give you a clue about where the unexpected character is. Check this location in your code or files for any characters that shouldn’t be there.
  2. Validate your JSON: If the error is occurring when you’re trying to parse a JSON, it might be because the JSON is not properly formatted. You can use online tools to validate your JSON.
  3. Update your packages: Sometimes, these errors can be caused by outdated or incompatible versions of Flutter packages. Try running flutter pub get to update your packages.
  4. Clean and rebuild your project: You can try cleaning your project and rebuilding it. Use the flutter clean command to delete the build/ directory. After that, run your project again.

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

2 participants