Start a new topic

Wikitude Sample doesn't work

Wikitude Sample doesn't work


I import the SDK example for Epson Moverio BT200 in Android studio.Perform correctly the Build. After that run the app via usb adb link.

On the device see the app start correctly, select the sample Image recognition. After thet the app stop to work with the message "Unfortunately SDK was stopped" On the catlog see the follow error

ples E/AndroidRuntime: FATAL EXCEPTION: main

                                                                       java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wikitude.sdksamples/com.wikitude.samples.SampleCamActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class com.wikitude.architect.ArchitectView

                                                                           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)

                                                                           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)

                                                                           at android.app.ActivityThread.access$600(ActivityThread.java:123)

                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)

                                                                           at android.os.Handler.dispatchMessage(Handler.java:99)

                                                                           at android.os.Looper.loop(Looper.java:137)

                                                                           at android.app.ActivityThread.main(ActivityThread.java:4424)

                                                                           at java.lang.reflect.Method.invokeNative(Native Method)

                                                                           at java.lang.reflect.Method.invoke(Method.java:511)

                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

                                                                           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:606)

                                                                           at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)

                                                                           at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)

                                                                           at android.view.LayoutInflater.inflate(LayoutInflater.java:489)

                                                                           at android.view.LayoutInflater.inflate(LayoutInflater.java:396)

                                                                           at android.view.LayoutInflater.inflate(LayoutInflater.java:352)

                                                                           at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)

                                                                           at android.app.Activity.setContentView(Activity.java:1835)

                                                                           at com.wikitude.samples.AbstractArchitectCamActivity.onCreate(AbstractArchitectCamActivity.java:69)

                                                                           at android.app.Activity.performCreate(Activity.java:4465)

                                                                           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)

                                                                           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)

                                                                           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 

                                                                           at android.app.ActivityThread.access$600(ActivityThread.java:123) 

                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) 

                                                                           at android.os.Handler.dispatchMessage(Handler.java:99) 

                                                                           at android.os.Looper.loop(Looper.java:137) 

                                                                           at android.app.ActivityThread.main(ActivityThread.java:4424) 

                                                                           at java.lang.reflect.Method.invokeNative(Native Method) 

                                                                           at java.lang.reflect.Method.invoke(Method.java:511) 

                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 

                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 

                                                                           at dalvik.system.NativeStart.main(Native Method) 

                                                                        Caused by: java.lang.reflect.InvocationTargetException

                                                                           at java.lang.reflect.Constructor.constructNative(Native Method)

                                                                           at java.lang.reflect.Constructor.newInstance(Constructor.java:417)

                                                                           at android.view.LayoutInflater.createView(LayoutInflater.java:586)

                                                                           at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680) 

                                                                           at android.view.LayoutInflater.rInflate(LayoutInflater.java:739) 

                                                                           at android.view.LayoutInflater.inflate(LayoutInflater.java:489) 

                                                                           at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 

                                                                           at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 

                                                                           at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251) 

                                                                           at android.app.Activity.setContentView(Activity.java:1835) 

                                                                           at com.wikitude.samples.AbstractArchitectCamActivity.onCreate(AbstractArchitectCamActivity.java:69) 

                                                                           at android.app.Activity.performCreate(Activity.java:4465) 

                                                                           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 

                                                                           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) 

                                                                           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 

                                                                           at android.app.ActivityThread.access$600(ActivityThread.java:123) 

                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) 

                                                                           at android.os.Handler.dispatchMessage(Handler.java:99) 

                                                                           at android.os.Looper.loop(Looper.java:137) 

                                                                           at android.app.ActivityThread.main(ActivityThread.java:4424) 

                                                                           at java.lang.reflect.Method.invokeNative(Native Method) 

                                                                           at java.lang.reflect.Method.invoke(Method.java:511) 

                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 

                                                      &nbsp

Hi,

Did you find some solutions ?

Unfortunately, I have the same error.

Thanks.

Hi,
I assume that both of you use Android Studio?
Can you try the followign:

* Rename the wikitudesdk.jar to wikitudesdk.zip
* Extract it
* Rename the `libs` folder to `lib`
* zip it again
* Rename it from wikitudesdk.zip to wikitudesdk.jar and try it again

 

FYI: we will release an update for our Epson SDK in the next month.

Best regards

Andreas

Thank you for your answer, but it doesn't solve the problem for me :/. I use android studio.

I have the same error but I am with vuzix smart glasses and not epson, I don't know if it can change something.

Best regards,

Lucille

Hi,
We used the same steps internally once we started converting the projects, so the steps mentioned above should work.

You can try to create a new .jar file which contains only the `lib` folder with our shared library. You then simply add this new .jar to your android studio project besides our original SDK.

We will release an update to our Epson SDK soon. This update then includes new Android Studio projects.

Best regards

Andreas

Hi,

I tried both method and none of them work on my project.

Can I have forgotten something to do ?

I created a new project, followed vuzix instruction to set up android application, added wikitude.jar file.

I haven't done "uncheck force error when External jar contains native libraries", because It was for eclipse and I didn't find it on android Studio. Could it be the problem ?

Thank you for paying attention to my problem,

Lucille

Hi Licille,
I guess you also wrote in a different thread about this issue. Can you please stick to this one, otherwise it's hard to kepp an overview about what is going on in the Forum and where we answerd what. thx!

Honestly I'm running out of ideas. The steps mentioned before worked for us internally. I will forward your request internally, maybe we find another solution.

Best regards

Andreas

Hi Lucille,
You could try to use our SDK 5.1.2 .aar instead of the 4.x .jar. 

Best regards

Andreas

There is no SDK 5.1.2 for vuzix, I can try the wikitude native sdk but does it work on vuzix ?

thanks,

Lucille Saadé

You could try the Wikitude JS API SDK for Android.

 

These are the steps from our Android developer who found out something more:

 Rename the wikitudesdk.jar to wikitudesdk.zip? Extract it but keep the original wikitudesdk.jar in the android libs folder? Rename the `libs` folder to `lib`? move the new `lib` folder to the android `libs` folder

* zip the `lib` folder

* rename the zip to armeabi.jar

* add the line ?compile fileTree(dir: 'libs', include: '*.jar?)? into dependencies{} in your build.gradle from your module

* set classpath ?com.android.tools.build:gradle:1.5.0? to ?com.android.tools.build:gradle:1.3.0? in build.gradle from your project

* make sure the compileSdkVersion, targetSdkVersion  and com.android.support-v4 are 22 or lower

 

Note the changes to gradle and compileSDKVersion

 


Best regards

Andreas

Thank you very much, there is no more issues about libarchitect.so !

Lucille Saadé.

Hi!

I am currently trying to implement the SDK sample for Epson BT2000. I have the same issue as Vittorio. When I try to load the AR world is crashes with the same message.

I am using Android Studio for this sample.

Could you please assist?

Best regards,

Adrian

Hi Adrian,
We're currently working on an Epson update that should go public within the next weeks. Please subscribe to our newsletter so that you don't miss the official announcement.

Best regards

Andreas

Do you have any updates regarding the port of the epson sdk to android studio?

We can't get the sdk working on the Epson BT-200. We followed all the steps and we were able to launch the app and the menu pops up.

But if you select an example like image on target the camera doesn't start and we can't find a proper solution.

 

Cheers
Login or Signup to post a comment