【简单解决】No toolchains found in the NDK toolchains folder for ABI with prefix...的方法

近日在使用一个第三方UHFdemo的时候,由于代码年代比较久远,导入之后就报No toolchains found in the NDK toolchains folder for ABI with prefix....的错误,经查了解到错误原因是Gradle版本太低的原因,升级之后又报Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0 ,这个错误是因为当前项目使用了gradle版本过渡时候的语法和特性,而本地环境的gradle版本太高,不支持之前的语法和特性,懒得解决了,来个最简单的办法吧:

1、打开SDK Manager【简单解决】No toolchains found in the NDK toolchains folder for ABI with prefix...的方法_第1张图片

2、选中SDK Tools,找到NDK选项,我原来是选中状态,现在已经反选了,为了演示就把它先勾选上了,一句话:把NDK反选然后apply-->ok 就行了,再次编译,问题解决

【简单解决】No toolchains found in the NDK toolchains folder for ABI with prefix...的方法_第2张图片

 

原来也遇到过这种问题,都是升级Gradle解决的,现在发现了更好的办法就先记录一下

你可能感兴趣的:(【简单解决】No toolchains found in the NDK toolchains folder for ABI with prefix...的方法)