I am trying to learn mobile devt using flutter, dat and firebase. SO as a start I downloaded the chat app code from here
But I can't seem to run the code via vscode and android studio. Can anyone please help me figure out how to run this.
error is: VScode:
{ "resource": "/C:/Users/Administrator/Downloads/flutter-chat-app-master/flutter-chat-app-master/lib/ChatMessageListItem.dart", "owner": "dart", "code": "uri_does_not_exist", "severity": 8, "message": "Target of URI doesn't exist: 'package:firebase_database/firebase_database.dart'.\nTry creating the file referenced by the URI, or Try using a URI for a file that does exist.", "source": "dart", "startLineNumber": 1, "startColumn": 8, "endLineNumber": 1, "endColumn": 58, "tags": [] }
this is the error when i run it in android studio.
C:\src\flutter\bin\flutter.bat --no-color packages get Running "flutter packages get" in flutter-chat-app-master... The current Dart SDK version is 2.3.0-dev.0.5.flutter-a1668566e5.
Because flutter_chat_app depends on firebase_analytics 0.0.4 which requires SDK version >=1.8.0 <2.0.0, version solving failed. pub get failed (1)
I was able to run other sample codes, one is from this so I know that my setup is working.
I already tried few possbile solutions but not working, I saw this , but did not solve my issue.
I think the error requires me to downgrade android sdk but I dont know where to do that. I just need to run so I can see what it looks and I can follow. thanks.