Android Studio 3.0.1 NDK fatal error: stdint.h: No such file or directory

荒凉一梦 提交于 2019-12-06 01:53:48

I just remove the ndk-bundle (latest version 16) folder from the SDK folder and put there older NDK version (15c). I downloaded the previous ndk version here.

It seems to be problem with the latest NDK. So far, this is the hack for me to proceed.

The error says, that the cross-toolchain (e.g. gcc) cannot find the STL (aka libstdc++6) headers.

A closer look into Android Developer Blog reveals why.

The file in ~/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h redirects to a platform header and is not the actual header file.

[Edit]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!