Start a new topic

Regarding AR integration with Wikitude using PhoneGap in Android

Regarding AR integration with Wikitude using PhoneGap in Android




Hi All,
 
I am trying to integrate the Augmented Reality using Wikitude with PhoneGap. And I have followed the documentation provided at your website but it is not working. I am getting compile time error as shown below:
 
on this line: import com.wikitude.architect.ArchitectUrlListener;



The error is "The import com.wikitude.architect.ArchitectUrlListener cannot be resolved".



 

I tried to Google this but none of the solution is working out.
 

Can anyone please look into it and do the needful?
 

Thanks,


Hi Ashish,

Please update to latest Wikitude PhoneGap Plugin, the imported packages slightly changed.
import com.wikitude.architect.ArchitectUrlListener
becomes
import com.wikitude.architect.ArchitectView.ArchitectUrlListener
 

Kind regards,
Andreas

Hi Andreas,

Thanks your solution worked out, now I am facing another problem to add architect.js file.

Can you please help me out architect.js in the project(android) ?

 

Thanks & Regards,

Ashish

Hi there!

The architect.js is no real fine but something included/intercepted virtually by the Android/iOS Wikitude SDK.
You must include this file to enable AR.* use inside the AR-View.
In case your editor shows a warning/error at this include in HTML - please ignore.

Note that any of these "AR-enabled html-files" only work in a Wiktiude SDK / Plugin context on a Mobile device.

Find details at
http://developer.wikitude.com/documentation

Kind regards,
Andreas

Hi Andreas,

 

Thanks for your reply but how to include and from where to inculde architect.js file into html page ,so that it enable AR world.

Please do the needful.
 

 

Thanks & Regards,

Ashish

Hi Ashish,

Easiest way is to have a look at the Wikitude PhoneGap Sample implementation on github.
Have a look at the Wikitude SDK Online Documentation for more details.

Kind regards,
Andreas
Login or Signup to post a comment