Skip to main content
New Participant
Aug 6, 2023 5:30 PM UTC
Solved

This file does not belong to any project target

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?

 

New Participant
Apr 13, 2025 9:39 AM UTC

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
Apr 13, 2025 9:39 AM UTC

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 !