Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

225
Vistas
can't create Application.java file inside java folder of my app

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.

  1. How do I create Application.java file without any error?
  2. How do I make device-to-device notifications work if I can't create Application.java file properly?

screenshots;

  1. my app folder structure https://i.stack.imgur.com/wTXil.png
  2. my Application.javafile location https://i.stack.imgur.com/qeJDs.png
  3. error in Application.java https://i.stack.imgur.com/0TCT2.png
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Please have a look at this github issue: not on the classpath of project app, only syntax errors are reported.

The production group developer replied android is not supported by VSCode-Java and explained:

Android uses special Gradle plugins to compute the project classpath, that are not supported in Buildship, the underlying Gradle Integration plugin we delegate Gradle support to.

Currently, there is no ideal solution for that but you can try the Lightweight mode by settingjava.server.launchMode to LightWeight. You will be able to use a subset of features like Go to Definition of the types inside your local source and JDK. But there are also limitations, you won't be able to navigate to the types in Android SDK, and you won't be able to build and debug.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda