Get Started         Best Practices         Developer Guide         FAQ        
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Build failed with an exception when building with Cordova

Andrey Aug 03, 2015

Hello,

I'm trying to create a new app with Cordova using com.catchoom.craftar plug-in, but when I execute the command "cordova run", it says that it failed with the error code 8: "You may not have the required environment or OS to run this project". You can see the error printscreen on the next link:

http://orbelink.com/craftar/error.jpg


I'm using the SDK "craftar-image-recognition-sdk-android".

What can be happening?

I hope you can help me to understand the cause of this issue.

Regards.


( Agent )
Miquel Ferrarons

Aug 04, 2015

Hi,

The cordova plugin was built for the Augmented Reality SDK, not for the image recognition SDK. You can download the augmented reality SDK here http://catchoom.com/product/craftar/augmented-reality-sdk/#download-mobile-sdk

To run the cordova example for Android, do the following:

  1. Create a new cordova project:
    • cordova create hellocraftar
  2. Add the android platform to the project
    • cd hellocraftar
    • cordova platform add android
  3. Install the CraftAR cordova plugin in your new cordova project
    • cordova plugin add com.catchoom.craftar
  4. Extract the Augmented Reality SDK you downloaded from our website and copy the contents of libs into platforms/android/libs in your project.
  5. Copy the contents from platforms/android/assets/www/craftar_example/ to www/
  6. Build and run the application
    • cordova run

Note that this instructions are already available when you install the plugin via cordova plugin add com.catchoom.craftar

Best regards,

Miquel.

0 rated

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Couldn't find what you were looking for?

support@catchoom.com
https://cdn.desk.com/
false
catchoom
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete