Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:21.51.546.7]

Issues on building CROSSWALK version 21.51.546.7

on android build throws error

FAILURE: Build failed with an exception.
  • What went wrong:
    Execution failed for task ‘:processArmv7DebugManifest’.

BUILD FAILED

Total time: 6.077 secs

Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:21.51.546.7] E:\newapp\MyApteka\platfo
rms\android\build\intermediates\exploded-aar\org.xwalk\xwalk_core_library\21.51.546.7\AndroidManifest.xml
Suggestion: use tools:overrideLibrary=“org.xwalk.core” to force usage

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Error: cmd: Command failed with exit code 1 Error output:
E:\newapp\MyApteka\platforms\android\AndroidManifest.xml:46:5-74 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:21.51.546.7] E:\newapp\XXX\platforms\android\build\i
ntermediates\exploded-aar\org.xwalk\xwalk_core_library\21.51.546.7\AndroidManifest.xml
Suggestion: use tools:overrideLibrary=“org.xwalk.core” to force usage

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processArmv7DebugManifest’.

Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:21.51.546.7] E:\newapp\XXX\platfo
rms\android\build\intermediates\exploded-aar\org.xwalk\xwalk_core_library\21.51.546.7\AndroidManifest.xml
Suggestion: use tools:overrideLibrary=“org.xwalk.core” to force usage

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Any solutions? I have same error

1 Like

Hey there,

check, if your config.xml has this preference, otherwise add it:

<preference name="android-minSdkVersion" value="16"/>

This should do the trick. The value can also be higher than 16. But apparently crosswalk plugin needs at least version 16.

4 Likes

Solved by editing minsdk version at platforms\android\build\intermediates\exploded-aar\barcodescanner\AndroidManifest.xml

Its all becomes from BARCODE SCANNER plugin

Thanks bro …
this works !!!