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

CraftARSDKConfig not found

Tom Mar 18, 2019

Very frustrated. Trying to get the on device image recognition via cordova working for a few days now.
I have installed:
node 8
npm 3
Cordova 7.1
- platform Android 6.4

Problem:
When trying to install the plugin on Ubuntu 18, I always get the following error:
"CraftARSDKConfig" not found.


Tom

Mar 18, 2019

Here are more details:

Installing "craftar-cordova-on-device-image-recognition" for android
Plugin dependency "craftar-cordova-core@1.0.7" already fetched, using that version.
Dependent plugin "craftar-cordova-core" already installed on android.
Plugin dependency "craftar-cordova-sdk-odir@1.0.0" already fetched, using that version.
Installing "craftar-cordova-sdk-odir" for android
Running command: /home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh /home/tom/Desktop/seetrue
/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh: 4: /home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh: curl: not found
[sdk-android.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of sdk-android.zip or
sdk-android.zip.zip, and cannot find sdk-android.zip.ZIP, period.
cp: cannot stat 'sdk-android/libs': No such file or directory
cp: cannot stat 'sdk-android/assets/CraftARSDKConfig': No such file or directory
Error during processing of action! Attempting to revert...
Failed to install 'craftar-cordova-sdk-odir': CordovaError: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
at copyFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:219:36)
at copyNewFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:247:5)
at install (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /home/tom/Desktop/seetrue/platforms/android/cordova/Api.js:243:74
at _fulfilled (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:816:13)
Failed to install 'craftar-cordova-on-device-image-recognition': CordovaError: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
at copyFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:219:36)
at copyNewFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:247:5)
at install (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /home/tom/Desktop/seetrue/platforms/android/cordova/Api.js:243:74
at _fulfilled (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:816:13)
Error: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
0 rated
Tom

Mar 18, 2019

Here are more details:

Installing "craftar-cordova-on-device-image-recognition" for android
Plugin dependency "craftar-cordova-core@1.0.7" already fetched, using that version.
Dependent plugin "craftar-cordova-core" already installed on android.
Plugin dependency "craftar-cordova-sdk-odir@1.0.0" already fetched, using that version.
Installing "craftar-cordova-sdk-odir" for android
Running command: /home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh /home/tom/Desktop/seetrue
/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh: 4: /home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh: curl: not found
[sdk-android.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of sdk-android.zip or
sdk-android.zip.zip, and cannot find sdk-android.zip.ZIP, period.
cp: cannot stat 'sdk-android/libs': No such file or directory
cp: cannot stat 'sdk-android/assets/CraftARSDKConfig': No such file or directory
Error during processing of action! Attempting to revert...
Failed to install 'craftar-cordova-sdk-odir': CordovaError: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
at copyFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:219:36)
at copyNewFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:247:5)
at install (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /home/tom/Desktop/seetrue/platforms/android/cordova/Api.js:243:74
at _fulfilled (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:816:13)
Failed to install 'craftar-cordova-on-device-image-recognition': CordovaError: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
at copyFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:219:36)
at copyNewFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:247:5)
at install (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /home/tom/Desktop/seetrue/platforms/android/cordova/Api.js:243:74
at _fulfilled (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:816:13)
Error: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
0 rated
Tom

Mar 18, 2019

Here are more details:

Installing "craftar-cordova-on-device-image-recognition" for android
Plugin dependency "craftar-cordova-core@1.0.7" already fetched, using that version.
Dependent plugin "craftar-cordova-core" already installed on android.
Plugin dependency "craftar-cordova-sdk-odir@1.0.0" already fetched, using that version.
Installing "craftar-cordova-sdk-odir" for android
Running command: /home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh /home/tom/Desktop/seetrue
/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh: 4: /home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/hooks/before_plugin_install/install_android_sdk.sh: curl: not found
[sdk-android.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of sdk-android.zip or
sdk-android.zip.zip, and cannot find sdk-android.zip.ZIP, period.
cp: cannot stat 'sdk-android/libs': No such file or directory
cp: cannot stat 'sdk-android/assets/CraftARSDKConfig': No such file or directory
Error during processing of action! Attempting to revert...
Failed to install 'craftar-cordova-sdk-odir': CordovaError: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
at copyFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:219:36)
at copyNewFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:247:5)
at install (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /home/tom/Desktop/seetrue/platforms/android/cordova/Api.js:243:74
at _fulfilled (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:816:13)
Failed to install 'craftar-cordova-on-device-image-recognition': CordovaError: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
at copyFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:219:36)
at copyNewFile (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:247:5)
at install (/home/tom/Desktop/seetrue/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /home/tom/Desktop/seetrue/platforms/android/cordova/Api.js:243:74
at _fulfilled (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/home/tom/Desktop/seetrue/platforms/android/cordova/node_modules/q/q.js:816:13)
Error: Uh oh!
"/home/tom/Desktop/seetrue/plugins/craftar-cordova-sdk-odir/src/android/assets/CraftARSDKConfig" not found!
0 rated
( Agent )
Luis Martinell

Mar 18, 2019

Hi Tom,

This happens because your system doesn’t have the ‘curl’ command installed. Try installing curl and running the build again.

Best regards,
Luis

1 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