[Qt-creator] [4.6] Clang code model doesn't work on Android

Ivan Donchevskii ivan.donchevskii at qt.io
Fri Feb 16 08:13:49 CET 2018

ClangCodeModel should work fine if you have set up your Android toolkit properly.

I'm able to reproduce your issue when I have wrong NDK location set in the Android settings (settings->devices->android).

Point the proper folder and your errors should be gone.

Kind regards,


From: Qt-creator <qt-creator-bounces+ivan.donchevskii=qt.io at qt-project.org> on behalf of Nikos Chantziaras <realnc at gmail.com>
Sent: Friday, February 16, 2018 6:41:36 AM
To: qt-creator at qt-project.org
Subject: Re: [Qt-creator] [4.6] Clang code model doesn't work on Android

On 16/02/18 04:24, Nikos Chantziaras wrote:
> 4.6 beta1, but also the latest rc1 snapshot (15 Feb), seem to have a
> non-working Clang code model when using an Android kit.
> The error is usually something like this:
>    qglobal.h:45:12: fatal error: 'type_traits' file not found
>    QDebug:1:10: note: in file included from [...]
> This is printed by the yellow warning sign at the top. As a result, the
> code model is completely broken for the rest of the file.
> Is this a known bug?

Well, actually it seems even the built-in code model has issues with

In both cases, standard C++ headers cannot be found. Only standard C
headers work. So this:

   #include <cstdio>

appears underlined with the pop-up error message being "no such file or

But this:

   #include <stdio.h>

works fine.

Qt-creator mailing list
Qt-creator at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20180216/cd5b0a30/attachment.html>

More information about the Qt-creator mailing list