美文网首页
More than one file was found wit

More than one file was found wit

作者: 一个小草人 | 来源:发表于2021-03-19 16:34 被阅读0次

这是因为项目配置的Android Gradle插件版本高于4.0导致的,4.0之前所需要的so库必须放入jniLibs,若放入其他文件夹内,还需要在build.gradle内配置jniLibs.srcDirs,,而4.0后不再需要配置这些,而且so不能再放到jniLibs内,需要放到其他文件夹内,一般就放入libs文件夹内,当然你也可以自己创建个文件夹,变得更简单了。

Android官方网站给出的解释:

image.png
参考网页:https://developer.android.google.cn/studio/projects/gradle-external-native-builds?hl=zh-cn

相关文章

网友评论

      本文标题:More than one file was found wit

      本文链接:https://www.haomeiwen.com/subject/vstbcltx.html