Reputation: 1034
I am using Android studio 3 to develop Android application that contains c++ code that are compiled using cmake and NDK, the compilation is ok and the app runs correctly, but when I try to edit cpp file, the inline compiler shows a lot of errors, all standard header files are missing, this is very annoying as I cannot know if I make any compilation error until I run the app, I am not using any special configuration in cmake or in cradle file, any suggestion to fix the problem?
Upvotes: 7
Views: 1317
Reputation: 16771
Found a solution:
If the above steps don't work, try setting your gradle version to 3.3 (if it's not that already), and try the above steps again.
Upvotes: 2
Reputation: 10509
CLion (the C++ IDE that Android Studio is based on) does not have a perfect C++ parser. I believe there's a fix for the most common issue (not properly handling SFINAE) coming Soon.
Upvotes: 1