Got an error when building android app with plugins

  • Hi.
    I want to make AR app with Monaca. And I use wikitude-cordova-plugin.

    When I installed it and build android app, I got an error message below.

    uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library
    Suggestion: use tools:overrideLibrary="com.wikitude.architectandlib" to force usage

    And I changed AndroidManifest.xml like below.

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="" android:hardwareAccelerated="true" android:versionCode="1" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="com.example.helloworld" xmlns:tools="">
      <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="23" />
      <uses-sdk tools:overrideLibrary="com.wikitude.architectandlib" />

    But errors doen’t disapper.

    I changed cordova cli ver 6.2.0-beta on Monaca. And I can build this plugin with cordova cli.

    Any advice?

  • Please try to add the following text to config.xml

    <platform name="android">
        <preference name="android-minSdkVersion" value="15" />

  • Monaca

    Moved the discussion at Monaca section.

  • @KNaito said:

    <platform name=“android”>
    <preference name=“android-minSdkVersion” value=“15” />

    @KNaito , Thanks a lot! I could build a project!

Log in to reply