'Flutter error while trying to start debugging

After installing firebase, cloud firestore I have an error....

enter image description here

Here is my buildgradle file

enter image description here

Also when I'm trying to upgrade my flutter to the newest version is an error that says:

 ProcessException: Process exited abnormally:
remote: Repository not found.
fatal: repository 'https://github.com/mateuszptak/flutter.git/' not found
  Command: git fetch --tags


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source