When I developed NDK application in AndroidStudio, all header files could not be found, but they could be compiled successfully.

  android, question

When I developed NDK applications in AndroidStudio, all header files could not be found, but they could be compiled successfully. The same is true for projects imported from sample, and header files cannot be found, similar to this:

clipboard.png

So all types are red and there is no code hint:

clipboard.png
But it can be compiled successfully and run normally.

I have tried to solve it for a long time, but it has not been solved. Please pray for a great god.

If you are a practical gradle-experimental, you should be able to find the header file earlier. if you write gradle Task yourself, studio seems unable to support it. In addition, make sure that your studio has installed the NDK surpport plug-in.