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?


  • Monaca

    This error might be related to required minSdkVersion value. If you are using the latest version of the Wikitude plugin which requires minSdkVersion to be at least 19. By default with Cordova 7.1 project, minSdkVersion is set to 16. In this case, you can just change the minSdkVersion to 19 as shown below:

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

Log in to reply