NDK not configured. Download it with SDK manager

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了NDK not configured. Download it with SDK manager相关的知识,希望对你有一定的参考价值。

  • 项目结构(File->Project Structure)

既然是灰色,说明有问题。

  • 设置(File->Setting)

  • 修改设置

打开local.properties,添加刚刚下载的ndk:

## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Tue May 31 21:35:41 CST 2022
sdk.dir=D\\:\\\\SOFTWARES\\\\DEVELOP\\\\adt-bundle-windows-x86_64-20190307\\\\sdk
ndk.dir=D\\:\\\\SOFTWARES\\\\DEVELOP\\\\adt-bundle-windows-x86_64-20190307\\\\sdk\\\\ndk\\\\21.0.6113669

以上是关于NDK not configured. Download it with SDK manager的主要内容,如果未能解决你的问题,请参考以下文章

Android NDK: Could not find application project directory

无法构建 Android NDK 项目致命错误:android/configuration.h:没有此类文件或目录编译终止

NDK at ...AndroidSdk dk21.1.6528147 did not have a source.properties file

android -------- 解决NDK开发中的 Method 'NewStringUTF' could not be resolved

Android studio2.2 ndk 错误 :format not a string literal and no format arguments!

我的Android进阶之旅解决NDK开发,编译的时候报错:open: Invalid argument File xxx.so is not writable.