问题:Android NDK location should not contain whitespace...解决方法

时间:2024-05-23 09:02:46

在Android Studio环境开发时,可能会遇到如下问题:

Android NDK location should not contain whitespace, as this can cause problems with the NDK tools.

或者

android SDK Location should not contain whitespace, as this can cause problems with the native tools.

出现该问题的原因是NDK目录或SDK目录命名的时候包含空格了,去掉空格就可以解决。

解决方法:

一、SDK问题

1.将SDK目录空格去掉

2.File-->Settings

问题:Android NDK location should not contain whitespace...解决方法

3.选择Android SDK-->Android SDK Location-->Edit

问题:Android NDK location should not contain whitespace...解决方法

3.选择去掉空格后的SDK目录即可

 

二、NDK问题

1.同SDK步骤1

2.右键项目-->Open Modules Settings

问题:Android NDK location should not contain whitespace...解决方法

3.修改NDK目录即可

问题:Android NDK location should not contain whitespace...解决方法