Uncaught Exception when Android SDK is not installed

BrianBocciaBrianBoccia USMember ✭✭

I don't do Android development, so I think I chose not to install that when I installed Xamarin Studio. But it seems to have caused an error when trying to run the profiler:

XamarinProfiler.Core.Profiler Information: 0 : [2017-04-19 12:25:47.3099] ##########################################
XamarinProfiler.Core.Profiler Information: 0 : [2017-04-19 12:25:47.3207] # Xamarin Profiler version - 1.4.0.1
XamarinProfiler.Core.Profiler Information: 0 : [2017-04-19 12:25:47.3208] # * Arch x86_64
XamarinProfiler.Core.Profiler Information: 0 : [2017-04-19 12:25:47.3208] ##########################################
XamarinProfiler.Core.Profiler Critical: 0 : [2017-04-19 12:25:47.4073] uncaught exception
System.TypeInitializationException: The type initializer for 'XamarinProfiler.Core.Platforms.Android.PlatformAndroid' threw an exception. ---> System.InvalidOperationException: This property is not valid when the SDK is not installed
at Xamarin.AndroidTools.AndroidSdk.ValidatePath (System.String path) [0x0001e] in /Users/builder/data/lanes/4486/575dd145/source/profiler/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:265
at Xamarin.AndroidTools.AndroidSdk.get_AdbExe () [0x0000b] in /Users/builder/data/lanes/4486/575dd145/source/profiler/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:138
at XamarinProfiler.Core.Platforms.Android.PlatformAndroid..cctor () [0x00000] in /Users/builder/data/lanes/4486/575dd145/source/profiler/src/XamarinProfiler.Core/Platforms/Android/PlatformAndroid.cs:17
--- End of inner exception stack trace ---
at XamarinProfiler.Core.Platform.get_ProfilingPlatforms () [0x0001b] in /Users/builder/data/lanes/4486/575dd145/source/profiler/src/XamarinProfiler.Core/Platform.cs:104
at XamarinProfiler.Core.ProfilerSession.Initialize (XamarinProfiler.Core.RunFactory runFactory, System.Boolean logToFile) [0x00015] in /Users/builder/data/lanes/4486/575dd145/source/profiler/src/XamarinProfiler.Core/ProfilerSession.cs:31
at XamarinProfiler.Mac.MainClass.Main (System.String[] args) [0x00033] in /Users/builder/data/lanes/4486/575dd145/source/profiler/src/XamarinProfiler.Mac/Main.cs:33
XamarinProfiler.Core.Profiler Critical: 0 : [2017-04-19 12:25:47.4073] uncaught exception
System.TypeInitializationException: The type initializer for 'XamarinProfiler.Core.Platforms.Android.PlatformAndroid' threw an exception. ---> System.InvalidOperationException: This property is not valid when the SDK is not installed
at Xamarin.AndroidTools.AndroidSdk.ValidatePath (System.String path) [0x0001e] in /Users/builder/data/lanes/4486/575dd145/source/profiler/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:265
at Xamarin.AndroidTools.AndroidSdk.get_AdbExe () [0x0000b] in /Users/builder/data/lanes/4486/575dd145/source/profiler/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:138
at XamarinProfiler.Core.Platforms.Android.PlatformAndroid..cctor () [0x00000] in /Users/builder/data/lanes/4486/575dd145/source/profiler/src/XamarinProfiler.Core/Platforms/Android/PlatformAndroid.cs:17
--- End of inner exception stack trace ---
at XamarinProfiler.Core.Platform.get_ProfilingPlatforms () [0x0001b] in /Users/builder/data/lanes/4486/575dd145/source/profiler/src/XamarinProfiler.Core/Platform.cs:104
at XamarinProfiler.Core.ProfilerSession.Initialize (XamarinProfiler.Core.RunFactory runFactory, System.Boolean logToFile) [0x00015] in /Users/builder/data/lanes/4486/575dd145/source/profiler/src/XamarinProfiler.Core/ProfilerSession.cs:31
at XamarinProfiler.Mac.MainClass.Main (System.String[] args) [0x00033] in /Users/builder/data/lanes/4486/575dd145/source/profiler/src/XamarinProfiler.Mac/Main.cs:33

Posts

Sign In or Register to comment.