2015-07-10 60 views
0

我學習使用Wikitude並嘗試少量AR場景。我可以使用Android Studio在Android API 22手機上加載示例代碼。後來,我嘗試將示例代碼的圖像覆蓋部分作爲單獨的包放在同一個項目下。相機在帶有維度痕跡的按鈕按下時啓動,但圖像疊加不起作用。我注意到這個錯誤,是從工作抽樣日誌不同:wikitude圖像疊加未捕獲ReferenceError:AR未定義

07-10 01:58:31.585 7109-7109/com.wikitude.sdksamples I/Android Callback﹕ ARchitect Build: 9ad0da2 
07-10 01:58:31.645 7109-7109/com.wikitude.sdksamples E/AugmentedActivity﹕ Loaded the asset folder/web app correctly 
07-10 01:58:31.665 7109-7109/com.wikitude.sdksamples D/SensorManager﹕ registerListener :: 0, ICM20610 Acceleration Sensor, 20000, 0, 
07-10 01:58:31.675 7109-7109/com.wikitude.sdksamples D/SensorManager﹕ registerListener :: 1, AK09911C Magnetic field Sensor, 20000, 0, 
07-10 01:58:31.685 7109-7109/com.wikitude.sdksamples D/SensorManager﹕ registerListener :: 0, ICM20610 Acceleration Sensor, 20000, 0, 
07-10 01:58:31.695 7109-7109/com.wikitude.sdksamples D/NetworkStateReceiver﹕ Network connectivity change 
07-10 01:58:31.795 7109-8287/com.wikitude.sdksamples E/libEGL﹕ called unimplemented OpenGL ES API 
07-10 01:58:32.145 7109-7109/com.wikitude.sdksamples W/BindingManager﹕ Cannot call determinedVisibility() - never saw a connection for the pid: 7109 
07-10 01:58:32.215 7109-7109/com.wikitude.sdksamples I/chromium﹕ [INFO:CONSOLE(1)] "Uncaught ReferenceError: AR is not defined", source: (1) 
07-10 01:58:32.215 7109-7109/com.wikitude.sdksamples I/Timeline﹕ Timeline: Activity_idle id: [email protected] time:105224168 
07-10 01:58:32.395 7109-8401/com.wikitude.sdksamples E/BufferQueueProducer﹕ [unnamed-7109-0] dequeueBuffer: min undequeued buffer count (2) exceeded (dequeued=5 undequeued=1) 
07-10 01:58:32.505 7109-7109/com.wikitude.sdksamples V/ActivityThread﹕ updateVisibility : ActivityRecord{3b03ef9d [email protected] {com.wikitude.sdksamples/com.wikitude.virtualhome.MainActivity}} show : false 
07-10 01:58:48.735 7109-7109/com.wikitude.sdksamples D/SensorManager﹕ unregisterListener :: 
07-10 01:58:48.815 7109-8524/com.wikitude.sdksamples D/SensorManager﹕ unregisterListener :: 
07-10 01:58:48.825 7109-8524/com.wikitude.sdksamples D/SensorManager﹕ unregisterListener :: 
07-10 01:58:49.205 7109-7109/com.wikitude.sdksamples V/ActivityThread﹕ updateVisibility : ActivityRecord{365c8517 [email protected] {com.wikitude.sdksamples/com.wikitude.virtualhome.AugmentedActivity}} show : true 

這是否意味着,不獲取創建從architect.js AR對象?

+0

請把日誌輸出到一個代碼塊。 – ninnemannk

回答

0

修正了它。我的錯!

更改代碼:this.architectView.load(getAssets().open("arviews/ImageOnTarget/index.html").toString());

this.architectView.load("arviews/ImageOnTarget/index.html"); 
相關問題