Start a new topic

Vuzix M100 with Wikitude SDK

Vuzix M100 with Wikitude SDK

 Hello,


I tried this solution on my end and now I'm getting this error.


image


can you help me with this?


Hi everybody,

I downloaded SDK and installed in Android Studio.

The Examples are installed on the Vuzix M100 what whatever I do, the system crash.

Is there any solution ?

Thank you, Roberto Pizzignach
Hi Roberto,

do you get this log message "Binary XML file line #6: Error inflating class com.wikitude.architect.ArchitectView"?

The vuzix package is stil an eclipse project and there is a known issue when importing the eclipse project into android studio.
To resolve this you could try this workaround.

If this is not the case could you send me the log output?

Best regards,
Alex
Hi,

I've already done that solution but with no results.

Thank you for your reply.
Roberto
Hi Roberto,

what is the log output of the crash?

Best regards,
Alex

09-30 11:29:03.282 29570-29570/? 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:66)
                                                       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:66)
                                                       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.UnsatisfiedLinkError: Cannot load library: load_library: Library '/data/data/com.wikitude.sdksamples/libarchitect.so' not found
                                                       at java.lang.Runtime.load(Runtime.java:340)
                                                       at java.lang.System.load(System.java:524)
                                                       at com.wikitude.architect.ArchitectView.e(Unknown Source)
                                                       at com.wikitude.architect.ArchitectView.a(Unknown Source)
                                                       at com.wikitude.architect.ArchitectView.<init>(Unknown Source)
                                                       at com.wikitude.architect.ArchitectView.<init>(Unknown Source)
                                                       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:66)
                                                       at android.app.Activity.performCreate(Activity.java:4465)
             &n
Hi Roberto,

this is exactly the error that i expected.

Please make sure that you follow each of these steps precisely:
  • 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

I tried the same on my machine and it worked just fine.

Best regards
Alex
Thank you Alexander,

I would try your solution but my boss decided to stop developing for Vuzix M100.

Thank you very much.
Roberto
Login or Signup to post a comment