Start a new topic

Unable to run example project

Unable to run example project


Please have a look at the sample app of very latest SDK 5.0 beta (and soon published official 5.0) and let me know your findings.

PS.: The post you replied to was already 2 years old, the issue should not occur anymore though.

I am trying load my app on Lollipop version. Its getting Same error, though after removing ade.js. 

 

Please suggest me what to do now

Hi Diego,

Thanks a lot for the hint. Please remove the ade.js in the "assets/samples"-folder. This will fix the issue.
We will remove the file as soon as possible.

Also: Please let us know if you have any issues with your device and send us details (OS version, ...) to android@wikitude.com or iphone@wikitude.com

Hi I'm running the latest WikitudeSDK on an Android Nexus 10. I am able to build the example application project, but application crashes soon after it starts. This is what I see on the console:

06-21 19:18:02.259: D/AndroidRuntime(6914): Shutting down VM

06-21 19:18:02.259: W/dalvikvm(6914): threadid=1: thread exiting with uncaught exception (group=0x40c3b930)

06-21 19:18:02.259: E/AndroidRuntime(6914): FATAL EXCEPTION: main

06-21 19:18:02.259: E/AndroidRuntime(6914): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wikitude.sdksamples/com.wikitude.samples.MainActivity}: java.lang.StringIndexOutOfBoundsException: length=6; regionStart=0; regionLength=-1

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.app.ActivityThread.access$600(ActivityThread.java:141)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.os.Handler.dispatchMessage(Handler.java:99)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.os.Looper.loop(Looper.java:137)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.app.ActivityThread.main(ActivityThread.java:5041)

06-21 19:18:02.259: E/AndroidRuntime(6914): at java.lang.reflect.Method.invokeNative(Native Method)

06-21 19:18:02.259: E/AndroidRuntime(6914): at java.lang.reflect.Method.invoke(Method.java:511)

06-21 19:18:02.259: E/AndroidRuntime(6914): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

06-21 19:18:02.259: E/AndroidRuntime(6914): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)

06-21 19:18:02.259: E/AndroidRuntime(6914): at dalvik.system.NativeStart.main(Native Method)

06-21 19:18:02.259: E/AndroidRuntime(6914): Caused by: java.lang.StringIndexOutOfBoundsException: length=6; regionStart=0; regionLength=-1

06-21 19:18:02.259: E/AndroidRuntime(6914): at java.lang.String.startEndAndLength(String.java:583)

06-21 19:18:02.259: E/AndroidRuntime(6914): at java.lang.String.substring(String.java:1464)

06-21 19:18:02.259: E/AndroidRuntime(6914): at com.wikitude.samples.MainActivity$SampleMeta.<init>(MainActivity.java:178)

06-21 19:18:02.259: E/AndroidRuntime(6914): at com.wikitude.samples.MainActivity.getActivitiesToLaunch(MainActivity.java:152)

06-21 19:18:02.259: E/AndroidRuntime(6914): at com.wikitude.samples.MainActivity.getListLabels(MainActivity.java:98)

06-21 19:18:02.259: E/AndroidRuntime(6914): at com.wikitude.samples.MainActivity.onCreate(MainActivity.java:34)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.app.Activity.performCreate(Activity.java:5104)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)

06-21 19:18:02.259: E/AndroidRuntime(6914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)

06-21 19:18:02.259: E/AndroidRuntime(6914): ... 11 more

06-21 19:23:02.299: I/Process(6914): Sending signal. PID: 6914 SIG: 9

 
Login or Signup to post a comment