ERROR: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 19 declar...

cordova新建项目:cordova platform add [email protected]的时候,报错最低版本不能低于19.1.0

ERROR: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 19 declared in library [__tested_artifact__::CordovaLib] D:\Dawning\AS_Cordova\com.keytop.helloNew\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)
ERROR: The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.
Move minSdkVersion to build files and sync project
Affected Modules: CordovaLib, app
image.png

解决办法:
1.点击
Move minSdkVersion to build files and sync project
2.点击:


image.png

就解决了,好神奇,新手踩坑,不明觉厉

你可能感兴趣的:(ERROR: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 19 declar...)