Android Studio 3.0.1 NDK致命错误:stdint.h:没有这样的文件或目录

问题描述:

我的具有本机代码的应用程序在以前的Android Studio版本上运行完美.我刚刚更新到 3.0.1 并收到此错误

My Application having native code was running perfect with previous Android Studio version. I just Updated to 3.0.1 and getting this error

/Users/salman.nazir/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    
fatal error: stdint.h: No such file or directory

我检查了目录,其中提到的路径中有stdint.h文件.我是否需要设置一些内容来访问该文件?

I checked the directory, stdint.h file is there in the mentioned path. Should i need to set something to get that file accessed?

注意:我正在使用MacOS

Note: I am using MacOS

我只是从SDK文件夹中删除了ndk-bundle(最新版本16)文件夹,并在其中放置了较旧的NDK版本(15c).我在此处下载了以前的ndk版本.

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.

最新的NDK似乎有问题.到目前为止,这是我要继续进行的工作.

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