Bug 30272 - Getting build error with "FieldService" mobile sample.
Summary: Getting build error with "FieldService" mobile sample.
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 0.0 (Samples)
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Oleg Demchenko
URL:
Depends on:
Blocks:
 
Reported: 2015-05-20 14:05 UTC by asimk
Modified: 2015-09-04 06:06 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Comment 1 Oleg Demchenko 2015-05-20 16:39:05 UTC
Hi asimk,

Make sure that NuGet packages were restored successfully, it seems that reference to Xamarin.Android.Support.v7.AppCompat is broken. Also from your build log I can see that 
component references are broken:

Could not resolve this reference. Could not locate the assembly "Xamarin.Mobile". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

Could not resolve this reference. Could not locate the assembly "SQLite". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

Could not resolve this reference. Could not locate the assembly "SignaturePad.Android". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Comment 2 Saurabh 2015-05-21 08:28:07 UTC
I have checked this Issue and observed that only components are not getting downloaded that is why we are getting error. I have tried to download components many times. But not getting downloads, error showing "Error downloading component . The remote server returned and error(403) forbidden".
However, I am able to add same component in android template application.

Build output: https://gist.github.com/saurabh360/e3a5456ba682ba2cebeb
VS Trace Log: https://gist.github.com/saurabh360/47e16df1bfd05495fab9
http://www.screencast.com/t/qvO4RhDXSRIM

Please let me know If I you required any other info.
Comment 3 Oleg Demchenko 2015-05-25 21:09:36 UTC
If you use staging server for activation it can cause connection problems with components store. Try to disable staging activation, download and install needed components then turn activation on and run sample app.
Comment 4 Oleg Demchenko 2015-06-18 09:34:31 UTC
Saurabh can you update status of this bug?
Comment 5 Arpit Jha 2015-09-04 06:03:35 UTC
@Oleg, I have checked this issue and observed that 'FieldService' sample works for me.

Hence I am closing this issue.
Comment 6 Arpit Jha 2015-09-04 06:06:13 UTC
An update to comment 5:

Screencast: http://www.screencast.com/t/QMegFDKqf

Environment Info:
Microsoft Visual Studio Professional 2013
Version 12.0.40629.00 Update 5
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional
Xamarin   3.11.893.0 (dd3b114)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.6.5 (965922617b643927fd4a01adae68730b63a01ecb)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   8.10.5.0 (67572797c1794b8219673503e84709d6a775628a)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration