Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
VascoDaGama98's avatar
VascoDaGama98
Honored Guest
3 years ago
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?

 

  • 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

  • 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 !