mips64el-linux-android-strip not found

AndroidStudio NDK的一个问题

最近这几天,AndroidStudio抽风,总是报错mips64el-linux-android-strip找不到。
主要是由NDK引起的,我想自己也没有用NDK方面的东西啊。

第一种解决办法:

发现一种解决办法是将local.properties文件中的ndk.dir中的bundle改成任意数字。
如:

## 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.
#Fri May 18 14:04:38 CST 2018
ndk.dir=/Users/jian/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/jian/Library/Android/sdk

改为:

## 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.
#Fri May 18 14:04:38 CST 2018
ndk.dir=/Users/jian/Library/Android/sdk/ndk-10
sdk.dir=/Users/jian/Library/Android/sdk

这种方法可用,但是不够完美。gradle会自动修改local.properties内的配置。

第二种解决办法:

将SDK Tools中的NDK去掉:


去掉NDK

这种方式很友好,再也不报错了。

为啥会报错?

有空再研究。。。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容