Skip to main content
New Participant
August 6, 2023
Solved

This file does not belong to any project target

  • August 6, 2023
  • 1 reply
  • 2358 views

I was able to build and deploy (Quest 2) hello_xr from https://github.com/KhronosGroup/OpenXR-SDK-Source using the instructions from https://developer.oculus.com/documentation/native/android/mobile-build-run-hello-xr-app/ . However, whenever I load the hello_xr project in Android Studio and open one of the cpp source files such as graphicsplugin_opengles.cpp, I get the following warning "This file does not belong to any project target; code insight features might not work properly".

Any ideas on how I can get the code insight features to work?

 

Best answer by antoineemerit

Hi,

In the Project panel (left) : 

  • switch to "Project files" view (default is "Android"),
  • right click on the .../src/test/hello_xr path
  • in the popup menu, select the "Mark disrectory as" and then click on "Sources root"

That's it !

 

1 reply

New Participant
April 13, 2025

Hi,

In the Project panel (left) : 

  • switch to "Project files" view (default is "Android"),
  • right click on the .../src/test/hello_xr path
  • in the popup menu, select the "Mark disrectory as" and then click on "Sources root"

That's it !