发现问题:个人这阵子在自己android studio下跑tensorflow的demo,在build过程中出现NDK not installed报错,在网上搜索很多资料,起初以为是sdk tools下没安装NDK工具,但经过尝试还是不行,走了很多弯路最终找到解决方法。
解决方法:
打开项目后,在IDE左上方点击File->Project Structure,在Android NDK Location下选择你的NDK所在的目录即可。
(NDK官方链接:https://developer.android.google.cn/ndk/downloads/)
如图:
相关文章: