ионная сборка андроида терпит неудачу о версии SDK - PullRequest
0 голосов
/ 25 ноября 2018

Я пытался

  • установить Android SDK
  • удалить платформу Android и повторно добавить
  • удалить плагин
  • установить minSdkVersion в19 в config.xml

, но у меня все еще есть проблема при создании этого проекта Android.

Я выполнил эту команду 'ionic cordova build 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)

----------
...