美文网首页
Suggestion: use a compatible lib

Suggestion: use a compatible lib

作者: ChaosHeart | 来源:发表于2020-12-29 09:57 被阅读0次

问题:

Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 18, or use tools:overrideLibrary="it.matteocrippa.flutternfcreader" to force usage (may lead to runtime failures)

截屏2020-12-29 09.11.43.png

解决:

这个问题是第三方版本比本地项目的版本高, 错误提示给出了三种解决方案:
1.Suggestion: use a compatible library with a minSdk of at most 16:将三方库的minSdkVersion降低,这种方案一般是不可行,我们自己无法修改对方的SDK的minSdkVersion。

2.increase this project's minSdk version to at least 18:提高自己项目的minSdkVersion大于等于三方的即可。

  1. use tools:overrideLibrary="it.matteocrippa.flutternfcreader" to force usage :
    在res文件夹下的 AndroidMainifest.xml中加入下面加入:
xmlns:tools="http://schemas.android.com/tools" 
<uses-sdk tools:overrideLibrary="三方库的包名"/>

三方库的包名就是第三中方案中的 it.matteocrippa.flutternfcreader

截屏2020-12-29 09.44.17.png

参考:

https://blog.csdn.net/weixin_37639900/article/details/90261211

相关文章

网友评论

      本文标题:Suggestion: use a compatible lib

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