Xamarin で作ったアプリを Fire HD 10 に入れる

Xamarinが動くかためしてみたがちゃんと動いた(Macからできるかは確認していないが)。


実際にはVisualStudioでXamarinをインストール時に
JDKAndroid SDK,Android NDK、Android がインストールされるので自分でいれる必要はないが別途入れなおした。


Xamarin.AndroidJDKAndroid SDK(http://developer.android.com/intl/ja/sdk/index.html から android-sdk_r24.4.1-windows.zip)をダウンロードしてきてVisaul Studio の Xamarin の設定にJDKAndroid SDK のインストール場所を設定。
Android SDK Manager で SDK等をインストール。
Android のバージョンは https://developer.xamarin.com/guides/cross-platform/getting_started/requirements/#windows
にある通り Android 6 API-23 を入れた。
ちなみに Fire HD 10 は Android 5.1 API-22。


Blank App(Android) でプロジェクト作って実行ボタンで
Fire HD に転送される(アプリ(8MB)と 初回のみMono Shared Runtime(38MB)。初回のみXamarin.Android API-23 Support(33MB))。
無事実行できた。


Xamarin.Forms は Blank App(Xamarin.Forms Portable) でプロジェクト作ったがビルドエラー。

Xamarin.Android for Visual Studio requires Android NDK, which is used to embed .NET assemblies into native libraries. While the NDK is generally not used for developing an Android application, we suggest you to install it. Please set Android NDK path on Tools->Options->Xamarin->Android Settings menu.

http://developer.android.com/intl/ja/ndk/downloads/index.html から
android-ndk-r11c-windows-x86_64.zip をダウンロードして NDK の場所を設定。
プロジェクト作りなおして実行ボタンで Fire HD に転送(アプリ(15MB))して実行できた。
Mono Shared RuntimeとXamarin.Android API-23 Support)が必要なのはXamarin.Android版と同じ。