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

Android Studio

Jerome CHA Mar 11, 2015

I put all files in the sdk lib folder into my project libs folder.

Therefore, I sill get an error when I tried to launch the sample project from github

ERROR Stacktrace ----------------------------
03-11 11:36:05.365 30723-30723/com.pictime.catchoom W/dalvikvm﹕ Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/craftar/CraftARActivity;
03-11 11:36:05.365 30723-30723/com.pictime.catchoom W/dalvikvm﹕ Class init failed in newInstance call (Lcom/pictime/catchoom/RecognitionOnlyActivity;)
03-11 11:36:05.365 30723-30723/com.pictime.catchoom D/AndroidRuntime﹕ Shutting down VM
03-11 11:36:05.365 30723-30723/com.pictime.catchoom W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41a07700)
03-11 11:36:05.365 30723-30723/com.pictime.catchoom E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Couldn't load track from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.pictime.catchoom-2.apk,libraryPath=/data/app-lib/com.pictime.catchoom-2]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:355)
at java.lang.System.loadLibrary(System.java:525)
at com.craftar.CraftARActivity.<clinit>(CraftARActivity.java:35)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1130)
at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2210)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)
at android.app.ActivityThread.access$700(ActivityThread.java:159)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at dalvik.system.NativeStart.main(Native Method)
03-11 11:36:14.705 30723-30723/com.pictime.catchoom I/Process﹕ Sending signal. PID: 30723 SIG: 9

-----------------------------------------------

I added all jar in my gradle.build :

compile fileTree(dir: 'libs', include: ['*.jar'])

Did I miss something?

Best regards,
Jerome


Miquel

Mar 11, 2015

Hi,

Please follow this steps to add the CraftAR Libraries into the project after downloading it:

1- Open the project in Android studio. In the project explorer, select the view 'Project Files'.
2- Create a folder 'libs' in the root of the project. Copy all the .jars included in our SDK there.
3- Create a folder jniLibs in the src/main folder. Copy the folders armeabi, armeabi-v7a and x86 there.
4- If you have import errors with the CraftAR classes, right click on the jars in libs/ folder and click on 'Add as library'

Note that this process is valid both for the image recognition SDK and for the augmented reality SDK.

Best regards,

Miquel.
1 rated
Jerome CHA

Mar 11, 2015

Thank you! It works! :)
1 rated

This question has received the maximum number of answers.

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