问题:
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大于等于三方的即可。
- 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
网友评论