Android Studio 3.0.1 NDK致命错误:stdint.h:没有这样的文件或目录 [英] Android Studio 3.0.1 NDK fatal error: stdint.h: No such file or directory

查看:230
本文介绍了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.

这篇关于Android Studio 3.0.1 NDK致命错误:stdint.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆