use-sdk:minSdkVersion 15不能小于库中声明的版本16 [英] uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library
问题描述
我不明白此错误消息
C:\Program Files (x86)\Jenkins\workspace\__temp-mobile-prev\platforms\android\AndroidManifest.xml:67:5 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library C:\Program Files (x86)\Jenkins\workspace\__temp-mobile-prev\platforms\android\build\intermediates\exploded-aar\com.paypal.sdk\paypal-android-sdk\2.14.2\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.paypal.android.sdk.payments" to force usage
因为 AndroidManifest.xml 的第 67 行如下所示:
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="22" />
15 来自哪里?
我使用 ionic 来构建我的应用.但是我不认为这是问题所在.
I use ionic to build my app. But I don't think that this is the problem.
推荐答案
也许我找到了问题.
我不想覆盖build.gradle,因为cordova是动态创建此文件的.但是我搜索了为什么cdvMinSdkVersion
返回错误值的原因.原因是这 barcodescanner-plugin .插件gradle文件具有这一行
I don't want to overwride the build.gradle, because cordova create this file dynamically. But I searched why that cdvMinSdkVersion
returns a wrong value. And the reason was this barcodescanner-plugin. The plugin gradle file has this line
ext.cdvMinSdkVersion = 15
这会覆盖 AndroidManifest.xml 中的值.在我删除并再次添加插件后,它可以工作了. 但是我不知道为什么?也许有人可以解释不同gradle脚本的顺序.
which overwrite my value from AndroidManifest.xml. After I have remove and add the plugin again it works. But I don't know why? Maybe someone could explain the order of the different gradle scripts.
这篇关于use-sdk:minSdkVersion 15不能小于库中声明的版本16的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!