Err: Failed to unpack
-
I’m trying to import a cordova plugin into my project but after waiting sometime i end up with a message like “Failed to unpack”.
The plugin I’m trying to import is Wikitude Cordova Plugin. I know this plugin has worked with monaca in the past. Is there a way or somewhat of a workaround to be able to import and use this plugin?
-
This error might be related to required
minSdkVersion
value. If you are using the latest version of the Wikitude plugin which requiresminSdkVersion
to be at least19
. By default with Cordova 7.1 project,minSdkVersion
is set to16
. In this case, you can just change theminSdkVersion
to19
as shown below:<platform name="android"> ... <preference name="android-minSdkVersion" value="19" /> ... </platform>