如何阻止gradle寻找Android NDK? [英] How to stop gradle from looking for the Android NDK?
本文介绍了如何阻止gradle寻找Android NDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Android项目,不不使用NDK jet Gradle正在寻找NDK.
I have a Android project which doesn't use the NDK jet Gradle is looking for the NDK.
我遇到此错误:
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
或者我得到这个警告:
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /opt/local/share/java/android-sdk-macosx/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
即使未设置ANDROID_NDK_HOME
和ndk.dir
,也是如此.有没有一种方法可以构建没有这些烦人消息的系统?
Even when ANDROID_NDK_HOME
and ndk.dir
is unset. It there a way to built the system without those annoying messages?
推荐答案
卸载NDK或更新gradle插件版本.较旧版本的插件存在一个错误,即使在仅Java项目中,该错误也会在NDK上执行无效的健全性检查. IIRC 3.2是固定版本.
Uninstall the NDK or update your gradle plugin version. There was a bug in older versions of the plugin where it would perform an invalid sanity check on the NDK even for a Java only project. IIRC 3.2 is the fixed version.
这篇关于如何阻止gradle寻找Android NDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文