I am currently having trouble setting up the sample projects in eclipse.I have succesfully imported it in Android studio and launched it on my phone. From eclipse though the mainactivity and the MainSample list activity launch fine but when the ArchitectView is loadedt the app crashes and i get the following error:
FATAL EXCEPTION: main
Process: com.example.testingjar, PID: 11147
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testingjar/com.example.testingjar.SampleCamActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class com.wikitude.architect.ArchitectView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2328)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386)
at android.app.ActivityThread.access$900(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5476)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class com.wikitude.architect.ArchitectView
at android.view.LayoutInflater.createView(LayoutInflater.java:626)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:702)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:366)
at android.app.Activity.setContentView(Activity.java:2031)
at com.example.testingjar.AbstractArchitectCamActivity.onCreate(AbstractArchitectCamActivity.java:81)
at android.app.Activity.performCreate(Activity.java:5451)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:600)
... 22 more
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load architect from loader dalvik.system.PathClassLoader: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at com.wikitude.architect.ArchitectView.d(ProGuard:291)
at com.wikitude.architect.ArchitectView.a(ProGuard:358)
at com.wikitude.architect.ArchitectView.<init>(ProGuard:244)
at com.wikitude.architect.ArchitectView.<init>(ProGuard:248)
... 25 more
in your documentation you mention a wikitude.jar in the SDKi can't find that file so i use the classes.jar from the wikitude.aar ,can this be the issue i am having here? and if yes is there any workaround?
i am using the latest version of wikitude and a Samsung S3 neo.
thanks for your time and your patience.
E
Eva
said
about 7 years ago
Hi Chris,
As you mentioned in your post you are using the latest version of Wikitude SDK. Since this version only supports Android studio I would strongly recommend you to develop your App using Android studio. Otherwise, you should search the Internet for a way to convert your aar file into jar file and be able to work with eclipse.
Chris Panou