简体   繁体   中英

uses-sdk:minSdkVersion 19 cannot be smaller than version 22 declared in library

Earlier we were using Android API level 28 with minSdkVersion as 19 in config.xml and the app was available in the play store. Recently we updated the android version ( By removing and adding latest android as google play console mandated to have android above API level 29 ). Bu doing this ionic build gave below error :

Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 22 declared in library [:CordovaLib] D:\MobileApp\MyApp\platforms\android\CordovaLib\build\intermediates\library_manifest\debug\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 22,
                    or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)

Due to this app could be updated in could of mobile phones. Please suggest if there is any way to have 19 as minSdkVersion.

Thanks !

Try to change the minSDKVersion to 22 in your config.xml file. I think the problem will be resolved. I had the same problem.

Example: <preference name="android-minSdkVersion" value="22" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM