Bug 44425 - First run for Xamarin.Forms on Visual Studio has many issues with Android packages.
Summary: First run for Xamarin.Forms on Visual Studio has many issues with Android pac...
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 7.0 (C8)
Hardware: PC Windows
: --- critical
Target Milestone: 7.1 (C9)
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2016-09-16 17:06 UTC by Pierce Boggan [MSFT]
Modified: 2016-12-27 10:22 UTC (History)
10 users (show)

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


Attachments
Logs (7.37 KB, application/x-zip-compressed)
2016-09-16 17:09 UTC, Pierce Boggan [MSFT]
Details
Sample project (207.69 KB, application/x-zip-compressed)
2016-09-16 17:09 UTC, Pierce Boggan [MSFT]
Details


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

Description Pierce Boggan [MSFT] 2016-09-16 17:06:50 UTC
# Steps to reproduce
1. Download the sample project. The sample project is just File->New Xamarin.Forms with C8 Stable release. The default NuGet package is 2.2.0. I upgraded the NuGet package for Xamarin.Forms in the PCL and Android projects (as is typical for Xamarin.Forms development), only to have a build issue.
2. Build the project.

# Expected behavior
Project builds & runs as expected.

# Actual behavior
Multiple errors compiling, relating to Android Support libraries. Worth noting that I did NOT update the Android support libs, but they were updated when I updated Xamarin.Forms, so the packages _should_ be compatible.

Error		error: package android.support.v7.widget.RecyclerView.ItemAnimator does not exist
		android.support.v7.widget.RecyclerView.ItemAnimator.ItemAnimatorFinishedListener	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_ItemAnimator_ItemAnimatorFinishedListenerImplementor.java	8	
Error		error: package android.support.v7.widget.RecyclerView does not exist
		android.support.v7.widget.RecyclerView.OnChildAttachStateChangeListener	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnChildAttachStateChangeListenerImplementor.java	8	
Error		error: package android.support.v7.widget.RecyclerView does not exist
		android.support.v7.widget.RecyclerView.OnItemTouchListener	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java	8	
Error		error: cannot find symbol
	public boolean onInterceptTouchEvent (android.support.v7.widget.RecyclerView p0, android.view.MotionEvent p1)
  symbol:   class RecyclerView
  location: package android.support.v7.widget	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java	30	
Error		error: cannot find symbol
	private native boolean n_onInterceptTouchEvent (android.support.v7.widget.RecyclerView p0, android.view.MotionEvent p1);
  symbol:   class RecyclerView
  location: package android.support.v7.widget	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java	35	
Error		error: cannot find symbol
	public void onTouchEvent (android.support.v7.widget.RecyclerView p0, android.view.MotionEvent p1)
  symbol:   class RecyclerView
  location: package android.support.v7.widget	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java	46	
Error		error: cannot find symbol
	private native void n_onTouchEvent (android.support.v7.widget.RecyclerView p0, android.view.MotionEvent p1);
  symbol:   class RecyclerView
  location: package android.support.v7.widget	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java	51	
Error		error: package android.support.v7.widget.RecyclerView does not exist
		android.support.v7.widget.RecyclerView.RecyclerListener	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_RecyclerListenerImplementor.java	8	
Error		error: package android.support.v7.widget.RecyclerView does not exist
	public void onViewRecycled (android.support.v7.widget.RecyclerView.ViewHolder p0)	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_RecyclerListenerImplementor.java	28	
Error		error: package android.support.v7.widget.RecyclerView does not exist
	private native void n_onViewRecycled (android.support.v7.widget.RecyclerView.ViewHolder p0);	MyFirstApp.Droid	C:\Users\Pierce Boggan\documents\visual studio 2015\Projects\MyFirstApp\MyFirstApp\MyFirstApp.Droid\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_RecyclerListenerImplementor.java	33	

# Supplemental info (logs, images, videos)
Logs attached.
Test project attached.

# Test environment (full version information)
			  Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Community

Visual Basic 2015   00322-20000-00000-AA140
Microsoft Visual Basic 2015

Visual C# 2015   00322-20000-00000-AA140
Microsoft Visual C# 2015

Visual C++ 2015   00322-20000-00000-AA140
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   7.0.20622.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Command Bus, Event Stream and Async Manager   Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

Xamarin   4.2.0.680 (c4382f5)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.0.18 (0e59c36)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.0.0.6 (6c3fee4)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Pierce Boggan [MSFT] 2016-09-16 17:09:29 UTC
Created attachment 17549 [details]
Logs
Comment 2 Pierce Boggan [MSFT] 2016-09-16 17:09:46 UTC
Created attachment 17550 [details]
Sample project
Comment 4 dean.ellis 2016-09-22 10:49:36 UTC
trying to repo on latest stable now. But I suspect it will be a problem due to failure to download packages.
Comment 5 dean.ellis 2016-09-29 10:13:21 UTC
@Pierce

did you manage to try the latest master?
Comment 6 dean.ellis 2016-11-11 10:52:35 UTC
I believe this is fixed in the latest master as there have been a number of changes around this area. Please reopen if this is not the case.