我正在学习使用Wikitude并试用一些AR场景。我可以使用Android Studio在Android API 22手机上加载示例代码。后来我尝试将示例代码的图像叠加部分作为同一项目下的单独包。使用wikitude轨迹标记按下按钮即可启动相机,但图像叠加不起作用。我注意到这个错误与工作样本日志不同:
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: android.os.BinderProxy@11fcbe2f 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 token=android.os.BinderProxy@180381fe {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 token=android.os.BinderProxy@11fcbe2f {com.wikitude.sdksamples/com.wikitude.virtualhome.AugmentedActivity}} show : true
这是否意味着,来自architect.js的AR对象没有被创建?
答案 0 :(得分:0)
修正了它。我的错!
更改了代码:this.architectView.load(getAssets().open("arviews/ImageOnTarget/index.html").toString());
到
this.architectView.load("arviews/ImageOnTarget/index.html");