Skip to content

Android Project doesn't recognize dependencies #3119

@JojoFR1

Description

@JojoFR1

With this android project, none of the dependencies get recognized and all the import give the error The import XX.XX cannot be resolved.

Environment
  • Operating System: Windows 11
  • JDK version: oracle java 19.0.2
  • Visual Studio Code version: 1.78.2
  • Java extension version: v1.19.2023052604 (latest)
Steps To Reproduce
  1. Clone https://github.com/KaarinGaming/AndroidGameTutorial/tree/master.
    • You might need to manually set the sources folders in app/build.gradle.
  2. Wait for Gradle and the Java Server to init and download all the dependencies.
Current Result

None of the import is recognized and get the error The import XX.XX cannot be resolved.

Expected Result

No error on the imports.

Additional Informations

I changed the plugin version multiple time, reinstalled it, cleared the gradle cache multiple time, cleaned the Java Language Server multiple time, restarted VSCode multiple time and nothing was able to fix it.
The build (./gradlew build) do work completely fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions