Я недавно обновил cordova-android до версии 12, мое приложение больше не собирается, и я получаю следующую ошибку
uses-sdk:minSdkVersion 19 не может быть меньше версии 21, объявленной в библиотеке
Я понимаю, что мне нужно поднять минимальную версию до 21 или выше, что я и сделал в файле config.xml:-
...
...
Я удалял и добавлял платформу много раз, но все равно получаю неудачную сборку с вышеуказанной ошибкой. Все, что я гуглю, заканчивается одним и тем же ответом (измените версию android-minSdkVersion в файле config.xml).
Я дергаю на себе волосы, поскольку уверен, что это что-то очевидное. меня не хватает, спасибо за любую помощь, и если вам нужна дополнительная информация (используемые плагины и т. д., дайте мне знать).
Полная ошибка:
> Task :app:processDebugMainManifest FAILED
C:\www\cordova\app\platforms\android\app\src\main\AndroidManifest.xml Error:
uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [androidx.core:core-splashscreen:1.0.0] C:\Users\user\.gradle\caches\transforms-3\8fa35d5508191c4f9f8ca09de1273d1b\transformed\jetified-core-splashscreen-1.0.0\AndroidManifest.xml as the library might be using APIs not available in 19
Suggestion: use a compatible library with a minSdk of at most 19,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="androidx.core.splashscreen" to force usage (may lead to runtime failures)
See https://developer.android.com/r/studio- ... est-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [androidx.core:core-splashscreen:1.0.0] C:\Users\user\.gradle\caches\transforms-3\8fa35d5508191c4f9f8ca09de1273d1b\transformed\jetified-core-splashscreen-1.0.0\AndroidManifest.xml as the library might be using APIs not available in 19
Suggestion: use a compatible library with a minSdk of at most 19,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="androidx.core.splashscreen" to force usage (may lead to runtime failures)
Подробнее здесь: https://stackoverflow.com/questions/764 ... in-library
Uses-sdk:minSdkVersion 19 не может быть меньше версии 21, объявленной в библиотеке. ⇐ Android
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение