Bug 47630 - The 'XamarinAndroidPackage' package did not load correctly
Summary: The 'XamarinAndroidPackage' package did not load correctly
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-22 13:56 UTC by Curia Damiano
Modified: 2016-12-13 16:53 UTC (History)
2 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:
RESOLVED NORESPONSE

Description Curia Damiano 2016-11-22 13:56:05 UTC
I've updated to version 4.2.1.64 (after fix for bug https://bugzilla.xamarin.com/show_bug.cgi?id=47263)

Now, if I try to create a Forms application, I get the error message "The 'XamarinAndroidPackage' package did not load correctly".

Opening the ActivityLog.xml file, I find these lines:
  <entry>
    <record>754</record>
    <time>2016/11/22 13:39:54.669</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>LegacySitePackage failed for package [XamarinAndroidPackage]Source: &apos;Xamarin.AndroidTools&apos; Description: Method not found: &apos;Void Mono.AndroidTools.AnalyticsService.ReportContextProperty(System.String[], System.String[])&apos;.&#x000D;&#x000A;System.MissingMethodException: Method not found: &apos;Void Mono.AndroidTools.AnalyticsService.ReportContextProperty(System.String[], System.String[])&apos;.&#x000D;&#x000A;   at Xamarin.AndroidTools.MonoDroidSdk.Refresh(String runtimePath, String binPath, String bclPath)&#x000D;&#x000A;   at Xamarin.AndroidTools.MonoDroidSdk.GetSdk()&#x000D;&#x000A;   at Xamarin.AndroidTools.AndroidSdk.&lt;&gt;c.&lt;GetInstalledPlatformVersions&gt;b__66_1(AndroidVersion version)&#x000D;&#x000A;   at System.Linq.Enumerable.&lt;&gt;c__DisplayClass6_0`1.&lt;CombinePredicates&gt;b__0(TSource x)&#x000D;&#x000A;   at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()&#x000D;&#x000A;   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)&#x000D;&#x000A;   at Xamarin.VisualStudio.Android.Services.AndroidToolsSdk.CheckInstalledPlatformVersions() in C:\data\lanes\3513\872717c9\source\xamarinvs\src\Core\VisualStudio.Android\Services\AndroidToolsSdk.cs:line 374&#x000D;&#x000A;   at Xamarin.VisualStudio.Android.Services.AndroidToolsSdk.CheckAndroidSdkSettings() in C:\data\lanes\3513\872717c9\source\xamarinvs\src\Core\VisualStudio.Android\Services\AndroidToolsSdk.cs:line 367&#x000D;&#x000A;   at Xamarin.VisualStudio.Android.Services.AndroidToolsSdk.Start() in C:\data\lanes\3513\872717c9\source\xamarinvs\src\Core\VisualStudio.Android\Services\AndroidToolsSdk.cs:line 311&#x000D;&#x000A;   at Xamarin.VisualStudio.Android.XamarinAndroidPackage.Initialize() in C:\data\lanes\3513\872717c9\source\xamarinvs\src\Core\VisualStudio.Android\XamarinAndroidPackage.cs:line 137&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</description>
    <guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
    <hr>80131513</hr>
    <errorinfo></errorinfo>
  </entry>


The files for the Android project are not even created in the file system.

Can you please help me?

Thank you, Damiano
Comment 1 Curia Damiano 2016-11-23 11:53:53 UTC
I've updated all the Android SDK packages, but same result.
I can't create any Xamarin.Forms application.