android - 使用-sdk :minSdkVersion 15 cannot be small

我不明白这个错误信息

  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 来构建我的应用程序。但我不认为这是问题所在。

最佳答案

我的问题在于 cordova-plugin-browsertab .

您需要将 my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle 的第 1 行更改为

def minSdkVersion = 19

确保您已将最低 SDK 添加到您的 config.xml

<preference name="android-minSdkVersion" value="19" />

然后通过以下方式删除并添加cordova-android:

cordova platform remove android
cordova platform add android

关于android - 使用-sdk :minSdkVersion 15 cannot be smaller than version 16 declared in library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37293082/

相关文章:

linux - 在 Debian 或 Ubuntu 下自动获取构建依赖项的 Debian 方式是什么

makefile - cmake和并行构建与 "make -jN"

build - hudson 的 "Started by an SCM change"是什么?

build - 如何在 VSTS/VSO Build vNext 中创建 Web 部署包?

android - 指示 Android Gradle 脚本删除未对齐的 apk 并清理 Artif

android - Dagger2 生成的类突然从 Android Studio 中消失了

time - Jenkins——使用 "Build Time Trend"获取 "Remote Ac

c - C语言的sublime text 2构建系统

c# - 从构建输出中省略程序集的本地化版本

xcode - 如何将编译源中的文件从一个目标复制并粘贴到另一个目标?