Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

219
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda