我是第一次创建一个 cordova android 项目。构建项目一切顺利。构建项目后,当我尝试在 Android IDE、Android Studio 中打开时, 我收到此错误。
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 19 declared in library [tested_artifact::CordovaLib] E:\projects\cordova\hello1\platforms\android\CordovaLib\build\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 1 Suggestion: use a compatible library with a minSdk of at most 1, 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)
我尝试添加 首选项名称="android-minSdkVersion"值="19" 在 Config.xml(项目目录)中。 它没有用。
请帮我解决这个问题。 谢谢,
最佳答案
删除
<uses-sdk android:minSdkVersion="19" />
在 android/CordovaLib/AndroidManifest.xml
中帮助解决了这个问题
关于android - 错误: list 合并失败:uses-sdk:minSdkVersion 1 不能小于库 [__tested_artifact__::CordovaLib] 中声明的版本 19,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57198501/