Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Got an error when building android app with plugins
-
Hi.
I want to make AR app with Monaca. And I use wikitude-cordova-plugin.https://github.com/Wikitude/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="http://schemas.android.com/apk/res/android" android:hardwareAccelerated="true" android:versionCode="1" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="com.example.helloworld" xmlns:tools="http://schemas.android.com/tools"> <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="23" /> : <uses-sdk tools:overrideLibrary="com.wikitude.architectandlib" /> </manifest>
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" /> </platform>
-
Moved the discussion at Monaca section.
-
@KNaito said:
<platform name=“android”>
<preference name=“android-minSdkVersion” value=“15” />
</platform>@KNaito , Thanks a lot! I could build a project!