THE PROBLEM..........
PS C:\Users\ahsan\StudioProjects\dropshop> flutterfire configure --project=flutterapp-7dd66
⠴ Fetching available Firebase projects...
Unhandled exception:
FormatException: Unexpected character (at character 1)
#
^
#0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383:5)
#1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250:9)
#2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915:22)
#3 _parseJson (dart:convert-patch/convert_patch.dart:35:10)
#4 JsonDecoder.convert (dart:convert/json.dart:612:36)
#5 runFirebaseCommand (package:flutterfire_cli/src/firebase.dart:95:25)
<asynchronous suspension>
#6 getProjects (package:flutterfire_cli/src/firebase.dart:114:20)
<asynchronous suspension>
#7 ConfigCommand._selectFirebaseProject (package:flutterfire_cli/src/commands/config.dart:300:24)
<asynchronous suspension>
#8 ConfigCommand.run (package:flutterfire_cli/src/commands/config.dart:390:37)
<asynchronous suspension>
#9 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#10 main (file:///C:/Users/ahsan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.7/bin/flutterfire.dart:57:5)
<asynchronous suspension>
SOME DETAILS: ............
I installed node.js and activated flutterfire using dart pub... command, then i logged into firebase. using firebase login, after that. flutterfire configure [which produced error] Fetching available Firebase projects...
''
`Unhandled exception:
FormatException: Unexpected character (at character 1)
#
^
#0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383:5)
#1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250:9)`
''....................................................................................
SOLUTION:
I CREATED BRAND NEW FLUTTER PROJECT AND REPAIRED PUB CACHE: USING : dart pub cache repair
I REDOWNLOADED and opened FIREBASE CLI INSTANT.EXE FILE. AND LOGGED INTO IT.
I redownloaded FIREBASE-TOOLS USING, npm install -g firebase-tools.
I CREATED THE FLUTTER PROJECT AND CREATED NEW FLUTTER APP THERE IN FIREBASE CONSOLE.
I TYPED " flutterfire configure " in newly downloaded firebase-cli-instant window. and it successfully fetched the projects and i selected my created project and i selected the platform ios,android... and it configured!!
you could also type flutterfire configure --project: ....
SOLUTION:
I CREATED BRAND NEW FLUTTER PROJECT AND REPAIRED PUB CACHE: USING : dart pub cache repair
I REDOWNLOADED and opened FIREBASE CLI INSTANT.EXE FILE. AND LOGGED INTO IT.
I redownloaded FIREBASE-TOOLS USING, npm install -g firebase-tools.
I CREATED THE FLUTTER PROJECT AND CREATED NEW FLUTTER APP THERE IN FIREBASE CONSOLE.
I TYPED " flutterfire configure " in newly downloaded firebase-cli-instant window. and it successfully fetched the projects and i selected my created project and i selected the platform ios,android... and it configured!!
you could also type flutterfire configure --project: ....
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.