I am working on a flutter app on vscode and trying to add device to device notifications functionality to my app.
I followed a video guide- Device to Device Notification | FCM | Firebase and Flutter ,
but I don't get any notifications. So I think it's because of an error I have when I create Application.java file in android/app/main/java/. The error was Application.java is not on the classpath of project app. Only syntax errors are reported. I tried to open vscode android file in android studio to create Application.java file, but somehow vscode said can't find android studio.
- How do I create Application.java file without any error?
- How do I make device-to-device notifications work if I can't create Application.java file properly?
screenshots;
- my app folder structure https://i.stack.imgur.com/wTXil.png
- my
Application.javafile location https://i.stack.imgur.com/qeJDs.png - error in
Application.javahttps://i.stack.imgur.com/0TCT2.png