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!