Answered by:
VS2017 - Init VS - Error MonoAndroidDesignerPackage

Question
-
Well the vs throw the exception MonoAndroidDesignerPackage
i think the problem is in that line
Xamarin.VisualStudio.Android.CommandHandlers.GetSdkInfoCommandHandler.ConvertFramework(AndroidFramework androidFramework, IEnumerable`1 installedFrameworks)
the vs is trying load android framework, i installed google api leve 23 and 25
so it should't be happening
the exception stack
LegacySitePackage failed for package [MonoAndroidDesignerPackage]
Source: Microsoft.VisualStudio.Composition
Description: An exception was thrown while initializing part 'Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerService';.

Microsoft.VisualStudio.Composition.CompositionFailedException:
An exception was thrown while initializing part';
Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerService'. ---> System.NullReferenceException: Object reference not set to an instance of an object.

at Xamarin.VisualStudio.Android.CommandHandlers.GetSdkInfoCommandHandler.ConvertFramework(AndroidFramework androidFramework, IEnumerable`1 installedFrameworks)
in E:\A\_work\16\s\src\Core\VisualStudio.Android\CommandHandlers\GetSdkInfoCommandHandler.cs:line 48

at Xamarin.VisualStudio.Android.CommandHandlers.GetSdkInfoCommandHandler.Execute(GetSdkInfo command)
in E:\A\_work\16\s\src\Core\VisualStudio.Android\CommandHandlers\GetSdkInfoCommandHandler.cs:line 32

at Merq.CommandBusComponent.Runner`1.Execute[TCommand](TCommand command)
in C:\projects\merq\src\Vsix\Merq.Vsix\Components\CommandBusComponent.cs:line 143

at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)

at Merq.CommandBusComponent.Execute[TResult](ICommand`1 command)
in C:\projects\merq\src\Vsix\Merq.Vsix\Components\CommandBusComponent.cs:line 79

at Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerService..ctor(IEventStream stream, ICommandBus commandBus)
in E:\A\_work\102\s\Xamarin.Designer.VisualStudio\src\VisualStudio.Android.Designer\MonoAndroidDesignerService.cs:line 43

--- End of inner exception stack trace ---

at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()

at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()

at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)

at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()

at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass53_0.<CreateExport>b__0()

at System.Lazy`1.CreateValue()

at System.Lazy`1.LazyInitValue()

at System.Lazy`1.get_Value()

at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass70_0`2.<GetExports>b__1()

at System.Lazy`1.CreateValue()

at System.Lazy`1.LazyInitValue()

at System.Lazy`1.get_Value()

at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]()

at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()

at Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerPackage.Initialize()
in E:\A\_work\102\s\Xamarin.Designer.VisualStudio\src\VisualStudio.Android.Designer\MonoAndroidDesignerPackage.cs:line 52

at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)System.NullReferenceException: Object reference not set to an instance of an object.

at Xamarin.VisualStudio.Android.CommandHandlers.GetSdkInfoCommandHandler.ConvertFramework(AndroidFramework androidFramework, IEnumerable`1 installedFrameworks)
in E:\A\_work\16\s\src\Core\VisualStudio.Android\CommandHandlers\GetSdkInfoCommandHandler.cs:line 48

at Xamarin.VisualStudio.Android.CommandHandlers.GetSdkInfoCommandHandler.Execute(GetSdkInfo command)
in E:\A\_work\16\s\src\Core\VisualStudio.Android\CommandHandlers\GetSdkInfoCommandHandler.cs:line 32

at Merq.CommandBusComponent.Runner`1.Execute[TCommand](TCommand command)
in C:\projects\merq\src\Vsix\Merq.Vsix\Components\CommandBusComponent.cs:line 143
 at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)

at Merq.CommandBusComponent.Execute[TResult](ICommand`1 command)
in C:\projects\merq\src\Vsix\Merq.Vsix\Components\CommandBusComponent.cs:line 79

at Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerService..ctor(IEventStream stream, ICommandBus commandBus)
in E:\A\_work\102\s\Xamarin.Designer.VisualStudio\src\VisualStudio.Android.Designer\MonoAndroidDesignerService.cs:line 43- Moved by Dave PatrickMVP Friday, April 20, 2018 7:33 PM
Friday, April 20, 2018 6:44 PM
Answers
-
I'd ask for help over here.
https://forums.xamarin.com/categories/android
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Saturday, April 21, 2018 2:00 AM
- Marked as answer by Richard MuellerMVP, Banned Friday, April 27, 2018 12:19 PM
Friday, April 20, 2018 7:32 PM
All replies
-
I'd ask for help over here.
https://forums.xamarin.com/categories/android
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Saturday, April 21, 2018 2:00 AM
- Marked as answer by Richard MuellerMVP, Banned Friday, April 27, 2018 12:19 PM
Friday, April 20, 2018 7:32 PM -
thanks Dave Patrick
Regards
Friday, April 20, 2018 10:00 PM -
You're welcome.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.Friday, April 20, 2018 10:06 PM