Start a new topic

Cannot build android Wikitude sample app

Cannot build android Wikitude sample app

1 person has this problem

Hi


Microsoft has acquired Xamarin. Entering

 https://www.xamarin.com/download

only gives you the option to download Visual Studio (when working on Windows.)

Status is andoid demo apps now builds with SDK 7.1.


Regards

Karsten


1 person likes this
Hello Karsten,

I would highly recommend that you try with Xamarin Studio instead of Visual Studio.

Thanks
Eva

 

Did try to download SDKs from the Download page.


But there is no program to install it.

 .xam file is unknown for visual studio.


Found also Xamarin.Forms sample project at:

    https://github.com/mkoehne/WikitudeExample

(using version 6 og the SDK)


Karsten


Hello Karsten,

We always advice our users to download our SDKs from the Download page, as we always update them first there.

Nice to hear you sorted it out and can continue with your app.

Eva

 

Downloading component zip file from

   https://components.xamarin.com/view/com.wikitude.xamarin.component

and using the 

  com.wikitude.xamarin.component-7.1.0\samples\WikitudeSampleAndroid\WikitudeSampleAndroid.sln

instead of the sample at

   https://github.com/Wikitude/wikitude-xamarin

compiled and worked with Visual Studio 2017 Pro.

I mistakenly thought the sampled at github worked and only the component should be downloaded from xamarin

I have same problem.

My environment is Windows 10, Visual Studio 2017 Pro with Xamarin.

I can build a hello world Xamarin.Form project Portable Class Library without Wikitude Component and deploy to my phone without no problem

Best Regards


Hi Leah,
From your console output I don't know exactly what is going wrong here. The log does not contain a direct hint to the Wikitude Component. Can you build a project without the Wikitude Component?

Best regards

Andreas

 

Hi,  I'm new to both mobile app development and wikitude.  However, I followed the instructions for running the wikitude sample app (https://components.xamarin.com/gettingstarted/com.wikitude.xamarin.component and https://github.com/wikitude/wikitude-xamarin) and I'm getting the following error:


WikitudeSampleAndroid -> C:WikitudeSampleApp\wikitude-xamarin-master\source\samples\Android\WikitudeSampleAndroid\bin\Debug\Example.dll

The "LinkAssemblies" task failed unexpectedly.

System.InvalidOperationException: Sequence contains no matching element

   at System.Linq.Enumerable.First(IEnumerable`1 source, Func`2 predicate)

   at MonoDroid.Tuner.PreserveApplications.PreserveTypeProperty(CustomAttribute attribute, String property)

   at MonoDroid.Tuner.PreserveApplications.ProcessAttributeProvider(ICustomAttributeProvider provider)

   at MonoDroid.Tuner.PreserveApplications.ProcessAssembly(AssemblyDefinition assembly)

   at Mono.Tuner.SubStepDispatcher.DispatchAssembly(AssemblyDefinition assembly)

   at Mono.Tuner.SubStepDispatcher.BrowseAssemblies(IEnumerable`1 assemblies)

   at Mono.Tuner.SubStepDispatcher.Process(LinkContext context)

   at Mono.Linker.Pipeline.Process(LinkContext context)

   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)

   at Xamarin.Android.Tasks.LinkAssemblies.Execute()

   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()


 

My environment is Windows 10, Visual Studio 2015 with Xamarin, and the sample app uses android sdk 4.4.  I'm building for that api level.  I'm sure since I'm new at this, it's something obvious to you all, any help would be greatly appreciated.

 
Login or Signup to post a comment