先日リリースした Windows 10 をさっそくメインマシンにインストールし、Visual Studio 2015 で Xamarin を試してみると・・・Xamarin Android Player が起動せず
デフォルトだと C:\ProgramData\XamarinAndroidPlayer
に出力されるエラーログを開いてみると
[15-07-31 15:08:38.90] DeviceManager version 0.4.4.0 [15-07-31 15:08:38.90] --- Device Manager started [15-07-31 15:08:39.14] Verification and migration of installeddevices.json failed. System.NullReferenceException: オブジェクト参照がオブジェクト インスタンスに設定されていません。 場所 Xamarin.AndroidPlayer.API.XAPSystemDetails..cctor()
ぬるぽ!
何か設定引き継ぎのトラブルだろうかと調べてみるとこんな情報があがっていました
どうも Windows 10 Update 後に同様のトラブルが起きている人がいる模様
Xamarin 公式の下記のページでも注意書きがありました
Xamarin Android Player - Xamarin
NOTE: Xamarin Android Player is not currently compatible with preview versions of Windows 10. The Player uses VirtualBox which has some issues when running on Windows 10 - once these are resolved we will review our support for Windows 10.
issues のところはリンクになっており、Virtual Box のバグトラッカーサイトです
#12182 (Failed to create the host network interface => Fixed in SVN) – Oracle VM VirtualBox
これが原因かどうかははっきりしませんが、Windows 10 で変更されたネットワーク機能に対応できてないという話もあり、どうもまだ対処が十分でなさそう
設定を見直すことで対処できそうもなかったので、いったん Visual Studio の方の Android エミュレーターを使っていこうかと思います