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
这种方式很友好,再也不报错了。
为啥会报错?
有空再研究。。。
网友评论