离子android构建失败关于SDK版本

时间:2018-11-25 13:18:38

标签: android cordova ionic-framework build ionic3

我试图

  • 安装android sdk
  • 删除android平台并重新添加
  • 删除插件
  • 在config.xml中将minSdkVersion设置为19

但是在构建这个Android项目时我仍然有问题。

我运行了此命令 “离子科尔多瓦打造Android”

我收到此错误消息

----------
:app:createDebugCompatibleScreenManifests UP-TO-DATE
/Users/dev_pjw/Documents/workspace/bmdevs/tgc-clinet-app/platforms/android/app/src/main/AndroidManifest.xml:28:5-74 Error:
    uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/dev_pjw/Documents/workspace/bmdevs/tgc-clinet-app/platforms/android/CordovaLib/build/intermediates/manifests/full/debug/AndroidManifest.xml as the library might be using APIs not available in 16
    Suggestion: use a compatible library with a minSdk of at most 16,
        or increase this project's minSdk version to at least 19,
        or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/dev_pjw/Documents/workspace/bmdevs/tgc-clinet-app/platforms/android/CordovaLib/build/intermediates/manifests/full/debug/AndroidManifest.xml as the library might be using APIs not available in 16
    Suggestion: use a compatible library with a minSdk of at most 16,
        or increase this project's minSdk version to at least 19,
        or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)

----------

0 个答案:

没有答案